From 540779286a899dee846784a8ffd0fdab756ac1e3 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 15 Dec 2013 22:54:56 +0100 Subject: Common web configuration. --- roles/common-web/files/etc/nginx/fastcgi/php | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 roles/common-web/files/etc/nginx/fastcgi/php (limited to 'roles/common-web/files/etc/nginx/fastcgi/php') 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; -- cgit v1.2.3