Advertisement
Guest User

sites-available/web1

a guest
Apr 15th, 2014
141
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. listen 80;
  3.  
  4. root /var/www/web1/public_html;
  5. index index.php index.html index.htm;
  6.  
  7. server_name web1.co www.web1.co;
  8.  
  9. location / {
  10. try_files $uri $uri/ /index.html;
  11. }
  12.  
  13. error_page 404 /404.html;
  14.  
  15. error_page 500 502 503 504 /50x.html;
  16. location = /50x.html {
  17. root /var/www/web1/public_html;
  18. }
  19.  
  20. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  21. location ~ \.php$ {
  22. try_files $uri =404;
  23. fastcgi_pass unix:/var/run/php5-fpm.sock;
  24. fastcgi_index index.php;
  25. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  26. include fastcgi_params;
  27.  
  28. }
  29. }
Advertisement
RAW Paste Data Copied
Advertisement