summaryrefslogtreecommitdiffstats
path: root/roles/common-web/files/etc/nginx/fastcgi/php
blob: 1ba393770f05a4ef9d69b78898dfe873bfdd735f (plain)
1
2
3
4
5
6
7
8
9
10
# cf. http://wiki.nginx.org/Pitfalls#Passing_Uncontrolled_Requests_to_PHP
try_files $uri $uri/ =404;

include 		fastcgi/params;
# required if PHP was built with --enable-force-cgi-redirect
fastcgi_param	REDIRECT_STATUS	200;

fastcgi_intercept_errors 	on;
fastcgi_read_timeout 		14400; 
fastcgi_pass				unix:/var/run/php5-fpm.sock;