From ad998656e2bde373619c5cd4ec0578034d8548ba Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Tue, 27 Sep 2011 06:59:19 -0400
Subject: [PATCH] - Changed FastCGI buffers for ISPConfig nginx vhost because otherwise you get "upstream sent too big header while reading response header from upstream" on OpenSUSE. - Added 502 error page ("Bad Gateway"). - Added "fastcgi_intercept_errors on;" to nginx vhost template so that ISPConfig's error pages are displayed instead of the default nginx ones.

---
 install/tpl/nginx_apps.vhost.master |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/install/tpl/nginx_apps.vhost.master b/install/tpl/nginx_apps.vhost.master
index 30416e3..b0bd3a3 100644
--- a/install/tpl/nginx_apps.vhost.master
+++ b/install/tpl/nginx_apps.vhost.master
@@ -15,11 +15,16 @@
         }
 
         location ~ \.php$ {
+               try_files $uri =404;
+               include /etc/nginx/fastcgi_params;
                fastcgi_pass 127.0.0.1:{fpm_port};
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_param PATH_INFO $fastcgi_script_name;
-               include /etc/nginx/fastcgi_params;
+               fastcgi_buffer_size 128k;
+               fastcgi_buffers 256 4k;
+               fastcgi_busy_buffers_size 256k;
+               fastcgi_temp_file_write_size 256k;
         }
 
         location ~ /\. {

--
Gitblit v1.9.1