-
-
Save xyzz/c0d28276d57c2a4b314e to your computer and use it in GitHub Desktop.
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 { | |
server_name servers.minetest.net; | |
root /var/www/servers.minetest.net; | |
access_log /var/log/nginx/servers_access.log; | |
add_header Access-Control-Allow-Origin *; | |
location / { | |
index index.html; | |
} | |
location ~ .*\.cgi$ { | |
fastcgi_pass unix:/var/run/fcgiwrap.socket; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include /etc/nginx/fastcgi_params; | |
} | |
rewrite ^/announce(.*)$ /master.cgi$1; | |
} | |
server { | |
listen [2a01:4f8:151:8106::2]:80; | |
server_name v6.servers.minetest.net; | |
root /var/www/servers.minetest.net; | |
access_log /var/log/nginx/servers_access.log; | |
add_header Access-Control-Allow-Origin *; | |
location / { | |
index index.html; | |
} | |
location ~ .*\.cgi$ { | |
fastcgi_pass unix:/var/run/fcgiwrap.socket; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include /etc/nginx/fastcgi_params; | |
} | |
rewrite ^/announce(.*)$ /master.cgi$1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment