Advertisement
Guest User

vhost

a guest
Jul 27th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. server {
  2. listen 127.0.0.1:8080;
  3. server_name myserver.com www.myserver.com;
  4.  
  5. # limit_conn limit_per_ip 16;
  6. # ssi on;
  7.  
  8. access_log /home/nginx/domains/myserver.com/log/access.log combined buffer=32k;
  9. error_log /home/nginx/domains/myserver.com/log/error.log;
  10.  
  11. root /home/nginx/domains/myserver.com/public;
  12.  
  13. location / {
  14.  
  15. # block common exploits, sql injections etc
  16. #include /usr/local/nginx/conf/block.conf;
  17.  
  18. # Enables directory listings when index file not found
  19. #autoindex on;
  20.  
  21. # Shows file listing times as local time
  22. #autoindex_localtime on;
  23.  
  24. # Enable for vBulletin usage WITHOUT vbSEO installed
  25. #try_files / /index.php;
  26.  
  27. }
  28.  
  29. include /usr/local/nginx/conf/staticfiles.conf;
  30. include /usr/local/nginx/conf/php.conf;
  31. include /usr/local/nginx/conf/drop.conf;
  32. #include /usr/local/nginx/conf/errorpage.conf;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement