Guest User

sites-enabled/default

a guest
Mar 30th, 2015
30
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # You may add here your
  2. # server {
  3. # ...
  4. # }
  5. # statements for each of your virtual hosts to this file
  6.  
  7. ##
  8. # You should look at the following URL's in order to grasp a solid understanding
  9. # of Nginx configuration files in order to fully unleash the power of Nginx.
  10. # http://wiki.nginx.org/Pitfalls
  11. # http://wiki.nginx.org/QuickStart
  12. # http://wiki.nginx.org/Configuration
  13. #
  14. # Generally, you will want to move this file somewhere, and start with a clean
  15. # file but keep this around for reference. Or just disable in sites-enabled.
  16. #
  17. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
  18. ##
  19.  
  20. server {
  21.  
  22. root /usr/share/nginx/html;
  23. index index.html index.htm;
  24.  
  25. # Make site accessible from http://localhost/
  26. server_name localhost;
  27. include hhvm.conf;
  28.  
  29. location / {
  30. # First attempt to serve request as file, then
  31. # as directory, then fall back to displaying a 404.
  32. try_files $uri $uri/ =404;
  33. # Uncomment to enable naxsi on this location
  34. # include /etc/nginx/naxsi.rules
  35. }
  36.  
  37. # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
  38. #location /RequestDenied {
  39. # proxy_pass http://127.0.0.1:8080;
  40. #}
  41.  
  42. #error_page 404 /404.html;
  43.  
  44. # redirect server error pages to the static page /50x.html
  45. #
  46. #error_page 500 502 503 504 /50x.html;
  47. #location = /50x.html {
  48. # root /usr/share/nginx/html;
  49. #}
  50.  
  51. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  52. #
  53. #location ~ \.php$ {
  54. # fastcgi_split_path_info ^(.+\.php)(/.+)$;
  55. # # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  56. #
  57. # # With php5-cgi alone:
  58. # fastcgi_pass 127.0.0.1:9000;
  59. # # With php5-fpm:
  60. # fastcgi_pass unix:/var/run/php5-fpm.sock;
  61. # fastcgi_index index.php;
  62. # include fastcgi_params;
  63. #}
  64.  
  65. # deny access to .htaccess files, if Apache's document root
  66. # concurs with nginx's one
  67. #
  68. #location ~ /\.ht {
  69. # deny all;
  70. #}
  71. }
  72.  
  73.  
  74. # another virtual host using mix of IP-, name-, and port-based configuration
  75. #
  76. #server {
  77. # listen 8000;
  78. # listen somename:8080;
  79. # server_name somename alias another.alias;
  80. # root html;
  81. # index index.html index.htm;
  82. #
  83. # location / {
  84. # try_files $uri $uri/ =404;
  85. # }
  86. #}
  87.  
  88.  
  89. # HTTPS server
  90. #
  91. #server {
  92. # listen 443;
  93. # server_name localhost;
  94. #
  95. # root html;
  96. # index index.html index.htm;
  97. #
  98. # ssl on;
  99. # ssl_certificate cert.pem;
  100. # ssl_certificate_key cert.key;
  101. #
  102. # ssl_session_timeout 5m;
  103. #
  104. # ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
  105. # ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
  106. # ssl_prefer_server_ciphers on;
  107. #
  108. # location / {
  109. # try_files $uri $uri/ =404;
  110. # }
  111. #}
RAW Paste Data