Guest User

virtual.conf

a guest
Apr 21st, 2012
150
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. root html;
  5. client_max_body_size 1024M;
  6.  
  7. # limit_conn limit_per_ip 16;
  8. # ssi on;
  9.  
  10. location /dav/
  11. {
  12. fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/dav/server.php;
  13. include fastcgi_params;
  14. root /usr/local/nginx/html/dav;
  15. fastcgi_pass 127.0.0.1:9000;
  16. }
  17.  
  18. location / {
  19.  
  20. # Enables directory listings when index file not found
  21. autoindex on;
  22.  
  23. # Shows file listing times as local time
  24. # autoindex_localtime on;
  25.  
  26. # Enable for vBulletin usage WITHOUT vbSEO installed
  27. # try_files $uri $uri/ /index.php;
  28.  
  29. }
  30.  
  31. include /usr/local/nginx/conf/staticfiles.conf;
  32. include /usr/local/nginx/conf/php.conf;
  33. #include /usr/local/nginx/conf/phpstatus.conf;
  34. include /usr/local/nginx/conf/drop.conf;
  35. #include /usr/local/nginx/conf/errorpage.conf;
  36.  
  37. }
  38.  
  39. server {
  40. listen 80;
  41. server_name demo.com;
  42. rewrite ^ $scheme://www.demo.com$request_uri? permanent;
  43.  
  44. }
  45.  
  46. server {
  47. listen 80 backlog=128;
  48. server_name www.demo.com;
  49.  
  50. # limit_conn limit_per_ip 16;
  51. # ssi on;
  52.  
  53. access_log /home/nginx/domains/demo.com/log/access.log ;
  54. error_log /home/nginx/domains/demo.com/log/error.log error;
  55.  
  56. root /home/nginx/domains/demo.com/public;
  57.  
  58. location / {
  59.  
  60. # Enables directory listings when index file not found
  61. # autoindex on;
  62.  
  63. # Shows file listing times as local time
  64. # autoindex_localtime on;
  65.  
  66. # Enable for vBulletin usage WITHOUT vbSEO installed
  67. # try_files $uri $uri/ /index.php;
  68.  
  69. }
  70.  
  71. include /usr/local/nginx/conf/staticfiles.conf;
  72. include /usr/local/nginx/conf/php.conf;
  73. include /usr/local/nginx/conf/drop.conf;
  74. #include /usr/local/nginx/conf/errorpage.conf;
  75.  
  76. }
RAW Paste Data