browsergame.nginx 632 B

1234567891011121314151617181920212223242526272829303132
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. # SSL configuration
  5. #
  6. # listen 443 ssl default_server;
  7. # listen [::]:443 ssl default_server;
  8. #
  9. # Self signed certs generated by the ssl-cert package
  10. # Don't use them in a production server!
  11. #
  12. # include snippets/snakeoil.conf;
  13. root /var/www/browsergame/htdocs;
  14. index index.php index.html index.htm;
  15. server_name gamedev.localhost;
  16. access_log /var/log/nginx/browsergame_access.log;
  17. error_log /var/log/nginx/browsergame_error.log;
  18. location / {
  19. try_files $uri $uri/ /index.php;
  20. }
  21. location ~ \.php$ {
  22. include snippets/fastcgi-php.conf;
  23. fastcgi_pass 127.0.0.1:9000;
  24. }
  25. }