Created
May 1, 2015 17:09
-
-
Save benaryorg/6cb418022484982444f7 to your computer and use it in GitHub Desktop.
nginx getmyip site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Server: $SERVER_SOFTWARE | |
Content-Type: text/plain; charset=UTF-8 | |
$REMOTE_ADDR:$REMOTE_PORT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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