Skip to content

Instantly share code, notes, and snippets.

@xyzz
Created November 3, 2013 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xyzz/c0d28276d57c2a4b314e to your computer and use it in GitHub Desktop.
Save xyzz/c0d28276d57c2a4b314e to your computer and use it in GitHub Desktop.
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