server { listen 80; listen [::]:80; # SSL configuration # # listen 443 ssl default_server; # listen [::]:443 ssl default_server; # # Self signed certs generated by the ssl-cert package # Don't use them in a production server! # # include snippets/snakeoil.conf; root /var/www/browsergame/htdocs; index index.php index.html index.htm; server_name gamedev.localhost; access_log /var/log/nginx/browsergame_access.log; error_log /var/log/nginx/browsergame_error.log; location / { try_files $uri $uri/ /index.php; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass 127.0.0.1:9000; } }