summaryrefslogtreecommitdiffstats
path: root/roles/common-web/files/etc/nginx/snippets/fastcgi-php.conf
blob: 9668bb81f32962ec09309bc3d9245b355cfafa86 (plain)
1
2
3
4
5
6
7
8
9
10
# cf. http://wiki.nginx.org/Pitfalls#Passing_Uncontrolled_Requests_to_PHP
try_files $fastcgi_script_name =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/php/php7.0-fpm.sock;