Advertisement
sandyd

Nginx default virtual host

Jul 26th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. server {
  2. listen 127.0.0.1:80;
  3. server_name _username_.sandyd.me 63.141.254.19;
  4. port_in_redirect off;
  5. root /opt/nfs/main/home/_username_/public_html;
  6. error_log /var/log/nginx/sites/_username_.sandyd.me_error_log warn;
  7. index index.html index.htm index.php;
  8. set_real_ip_from 127.0.0.1;
  9. real_ip_header X-Forwarded-For;
  10. autoindex on;
  11.  
  12. location ~ \.php$ {
  13. try_files $uri =404;
  14. fastcgi_pass unix:/var/run/php-fpm/php-fpm-_username_.sock;
  15. fastcgi_index index.php;
  16. include fastcgi_params;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement