diff options
Diffstat (limited to 'roles/common-web/files/etc/nginx/fastcgi/php')
-rw-r--r-- | roles/common-web/files/etc/nginx/fastcgi/php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/common-web/files/etc/nginx/fastcgi/php b/roles/common-web/files/etc/nginx/fastcgi/php new file mode 100644 index 0000000..1ba3937 --- /dev/null +++ b/roles/common-web/files/etc/nginx/fastcgi/php @@ -0,0 +1,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; |