This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

nginx vhost with fpm using port

By: Pothi on Jun 26th, 2012  |  syntax: None  |  size: 0.43 KB  |  views: 239  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data