Skip to content

Instantly share code, notes, and snippets.

@benaryorg
Created May 1, 2015 17:09
Show Gist options
  • Save benaryorg/6cb418022484982444f7 to your computer and use it in GitHub Desktop.
Save benaryorg/6cb418022484982444f7 to your computer and use it in GitHub Desktop.
nginx getmyip site
#!/bin/sh
echo "Server: $SERVER_SOFTWARE
Content-Type: text/plain; charset=UTF-8
$REMOTE_ADDR:$REMOTE_PORT"
server {
listen 443 ssl;
server_name server.local;
location / {
fastcgi_param SCRIPT_FILENAME $document_root/index.cgi;
fastcgi_pass fcgi;
include fastcgi.conf;
}
root /var/www/server.local/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment