summaryrefslogtreecommitdiffstats
path: root/roles/common-web/files/etc/nginx/fastcgi/php
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-12-15 22:54:56 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:51:26 +0200
commit540779286a899dee846784a8ffd0fdab756ac1e3 (patch)
tree74aa5483d2e9215306f32d1425a539ecad36ab96 /roles/common-web/files/etc/nginx/fastcgi/php
parentfaee1bbc276b63a81f3b81eae0f02bcaffabca6d (diff)
Common web configuration.
Diffstat (limited to 'roles/common-web/files/etc/nginx/fastcgi/php')
-rw-r--r--roles/common-web/files/etc/nginx/fastcgi/php10
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;