Advertisement
Guest User

Untitled

a guest
Apr 12th, 2011
638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name www.foobar.com;
  4. rewrite ^/(.*) http://foobar.com/$1 permanent;
  5. }
  6.  
  7. server {
  8. listen 80;
  9. server_name foobar.com;
  10.  
  11. access_log /var/log/nginx/access.log;
  12.  
  13. root .../httpdocs;
  14.  
  15. location / {
  16. root .../httpdocs;
  17. index index.php;
  18. }
  19.  
  20. error_page 404 /404.html;
  21.  
  22. location ~ \.php$ {
  23. fastcgi_pass unix:/var/run/php-fpm.sock;
  24. fastcgi_index index.php;
  25. include /etc/nginx/fastcgi_params;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement