Guest User

Untitled

a guest
Dec 30th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  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 und
  9. erstanding
  10. # of Nginx configuration files in order to fully unleash the power of
  11. 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
  17. a clean
  18. # file but keep this around for reference. Or just disable in sites-en
  19. abled.
  20. #
  21. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed exam
  22. ples.
  23. ##
  24.  
  25. server {
  26. #listen 80 default_server;
  27. #listen [::]:80 default_server ipv6only=on;
  28. listen 45.55.213.107:80
  29.  
  30. # root /usr/share/nginx/html;
  31. root /home/blog/_site
  32. index index.html index.htm;
  33.  
  34. # Make site accessible from http://localhost/
  35. server_name "";
  36.  
  37.  
  38. location / {
  39. # First attempt to serve request as file, then
  40. # as directory, then fall back to displaying a 404.
  41. try_files $uri $uri/ =404;
  42. # Uncomment to enable naxsi on this location
  43. # include /etc/nginx/naxsi.rules
  44. }
  45.  
  46. # Only for nginx-naxsi used with nginx-naxsi-ui : process deni
  47. ed requests
  48. #location /RequestDenied {
  49. # proxy_pass http://127.0.0.1:8080;
  50. #}
  51.  
  52. #error_page 404 /404.html;
  53.  
  54. # redirect server error pages to the static page /50x.html
  55. #
  56. #error_page 500 502 503 504 /50x.html;
  57. #location = /50x.html {
  58. # root /usr/share/nginx/html;
  59. #}
  60.  
  61. # pass the PHP scripts to FastCGI server listening on 127.0.0.
  62. 1:9000
  63. #
  64. #location ~ \.php$ {
  65. # fastcgi_split_path_info ^(.+\.php)(/.+)$;
  66. # # NOTE: You should have "cgi.fix_pathinfo = 0;" in php
  67. .ini
  68. #
  69. # # With php5-cgi alone:
  70. # fastcgi_pass 127.0.0.1:9000;
  71. # # With php5-fpm:
  72. # fastcgi_pass unix:/var/run/php5-fpm.sock;
  73. # fastcgi_index index.php;
  74. # include fastcgi_params;
  75. #}
  76.  
  77. # deny access to .htaccess files, if Apache's document root
  78. # concurs with nginx's one
  79. #
  80. #location ~ /\.ht {
  81. # deny all;
  82. #}
  83. }
  84.  
  85.  
  86. # another virtual host using mix of IP-, name-, and port-based configu
  87. ration
  88. #
  89. #server {
  90. # listen 8000;
  91. # listen somename:8080;
  92. # server_name somename alias another.alias;
  93. # root html;
  94. # index index.html index.htm;
  95. #
  96. # location / {
  97. # try_files $uri $uri/ =404;
  98. # }
  99. #}
  100.  
  101.  
  102. # HTTPS server
  103. #
  104. #server {
  105. # listen 443;
  106. # server_name localhost;
  107. #
  108. # root html;
  109. # index index.html index.htm;
  110. #
  111. # ssl on;
  112. # ssl_certificate cert.pem;
  113. # ssl_certificate_key cert.key;
  114. #
  115. # ssl_session_timeout 5m;
  116. #
  117. # ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
  118. # ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
  119. # ssl_prefer_server_ciphers on;
  120. #
  121. # location / {
  122. # try_files $uri $uri/ =404;
  123. # }
  124. #}
Add Comment
Please, Sign In to add comment