Advertisement
niammuddin

pass the PHP scripts to FastCGI server listening on the php-

Oct 9th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. # pass the PHP scripts to FastCGI server listening on the php-fpm socket
  2. location ~ \.php$ {
  3. try_files $uri =404;
  4. fastcgi_pass unix:/var/run/php5-fpm.sock;
  5. fastcgi_index index.php;
  6. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  7. include fastcgi_params;
  8.  
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement