nginx.default.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. #access_log /var/log/nginx/host.access.log main;
  5. location / {
  6. root /usr/share/nginx/html;
  7. index index.html index.htm;
  8. }
  9. #error_page 404 /404.html;
  10. # redirect server error pages to the static page /50x.html
  11. #
  12. error_page 500 502 503 504 /50x.html;
  13. location = /50x.html {
  14. root /usr/share/nginx/html;
  15. }
  16. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  17. #
  18. #location ~ \.php$ {
  19. # proxy_pass http://127.0.0.1;
  20. #}
  21. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  22. #
  23. #location ~ \.php$ {
  24. # root html;
  25. # fastcgi_pass 127.0.0.1:9000;
  26. # fastcgi_index index.php;
  27. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  28. # include fastcgi_params;
  29. #}
  30. # deny access to .htaccess files, if Apache's document root
  31. # concurs with nginx's one
  32. #
  33. #location ~ /\.ht {
  34. # deny all;
  35. #}
  36. }