summaryrefslogtreecommitdiffstats
path: root/roles/common-web/files/etc/nginx/snippets/fastcgi-php.conf
blob: 5823909262c37a42d1f72c5e7fdb8d3ca6a8b258 (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 		snippets/fastcgi.conf;
# 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;