Advertisement
Guest User

mysite.conf

a guest
Aug 4th, 2013
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. #/etc/nginx/sites-enabled/mySite.conf
  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;
  24.  
  25. server_name fil.localhost;
  26.  
  27. index index.php;
  28. root /home/vasilakisfil/Development/mySite;
  29.  
  30. # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
  31. #location /RequestDenied {
  32. # proxy_pass http://127.0.0.1:8080;
  33. #}
  34.  
  35. #error_page 404 /404.html;
  36.  
  37. # redirect server error pages to the static page /50x.html
  38. #
  39. #error_page 500 502 503 504 /50x.html;
  40. #location = /50x.html {
  41. # root /usr/share/nginx/html;
  42. #}
  43.  
  44. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  45. #
  46. location ~ \.php$ {
  47. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  48. # # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  49. #
  50. # # With php5-cgi alone:
  51. # fastcgi_pass 127.0.0.1:9000;
  52. # # With php5-fpm:
  53. fastcgi_pass unix:/var/run/php5-fpm.sock;
  54. fastcgi_index index.php;
  55. include fastcgi_params;
  56. }
  57.  
  58. # deny access to .htaccess files, if Apache's document root
  59. # concurs with nginx's one
  60. #
  61. #location ~ /\.ht {
  62. # deny all;
  63. #}
  64. }
  65.  
  66.  
  67. # another virtual host using mix of IP-, name-, and port-based configuration
  68. #
  69. #server {
  70. # listen 8000;
  71. # listen somename:8080;
  72. # server_name somename alias another.alias;
  73. # root html;
  74. # index index.html index.htm;
  75. #
  76. # location / {
  77. # try_files $uri $uri/ =404;
  78. # }
  79. #}
  80.  
  81.  
  82. # HTTPS server
  83. #
  84. #server {
  85. # listen 443;
  86. # server_name localhost;
  87. #
  88. # root html;
  89. # index index.html index.htm;
  90. #
  91. # ssl on;
  92. # ssl_certificate cert.pem;
  93. # ssl_certificate_key cert.key;
  94. #
  95. # ssl_session_timeout 5m;
  96. #
  97. # ssl_protocols SSLv3 TLSv1;
  98. # ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
  99. # ssl_prefer_server_ciphers on;
  100. #
  101. # location / {
  102. # try_files $uri $uri/ =404;
  103. # }
  104. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement