Advertisement
Pothi

nginx vhost with fpm using port

Jun 26th, 2012
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. server {
  2. server_name mysite.com www.mysites.com;
  3. index index.php;
  4. root /path/to/wordpress/installation;
  5.  
  6. location ~ \.php$ {
  7. try_files $uri =404;
  8. include fastcgi_params;
  9. fastcgi_index index.php;
  10. fastcgi_intercept_errors on;
  11. fastcgi_pass 127.0.0.1:9000;
  12. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  13. }
  14.  
  15. location / ( try_files $uri $uri/ /index.php?$args; }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement