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. }