Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. GNU nano 2.2.6 File: default
  2.  
  3. # You may add here your
  4. # server {
  5. # ...
  6. # }
  7. # statements for each of your virtual hosts to this file
  8.  
  9. ##
  10. # You should look at the following URL's in order to grasp a solid understanding
  11. # of Nginx configuration files in order to fully unleash the power of Nginx.
  12. # http://wiki.nginx.org/Pitfalls
  13. # http://wiki.nginx.org/QuickStart
  14. # http://wiki.nginx.org/Configuration
  15. #
  16. # Generally, you will want to move this file somewhere, and start with a clean
  17. # file but keep this around for reference. Or just disable in sites-enabled.
  18. #
  19. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
  20. ##
  21.  
  22. server {
  23. listen 80 default_server;
  24. listen [::]:80 default_server ipv6only=on;
  25.  
  26. root /usr/share/nginx/html;
  27. index index.html index.htm;
  28.  
  29. # Make site accessible from http://localhost/
  30. server_name localhost;
  31.  
  32. location / {
  33. # First attempt to serve request as file, then
  34. # as directory, then fall back to displaying a 404.
  35. try_files $uri $uri/ =404;
  36. # Uncomment to enable naxsi on this location
  37. # include /etc/nginx/naxsi.rules
  38. }
  39.  
  40. # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
  41. #location /RequestDenied {
  42. # proxy_pass http://127.0.0.1:8080;
  43. #}
  44.  
  45. #error_page 404 /404.html;
  46.  
  47. # redirect server error pages to the static page /50x.html
  48. #
  49. #error_page 500 502 503 504 /50x.html;
  50. #location = /50x.html {
  51. # root /usr/share/nginx/html;
  52. #}
  53.  
  54. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  55. #
  56. #location ~ \.php$ {
  57. # fastcgi_split_path_info ^(.+\.php)(/.+)$;
  58. # # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement