From 4e5d3d1fe30dd837335942dd8ce0dbe9bf847504 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 21 Feb 2017 15:43:00 +0100 Subject: [PATCH 1/2] Let apache handle error document for php files that desn't exist and not fpm --- server/conf/vhost.conf.master | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master index 9faa2b1c7b..a303313d3a 100644 --- a/server/conf/vhost.conf.master +++ b/server/conf/vhost.conf.master @@ -339,12 +339,24 @@ - SetHandler php5-fcgi + + + SetHandler php5-fcgi + + + SetHandler php5-fcgi + - SetHandler php5-fcgi + + + SetHandler php5-fcgi + + + SetHandler php5-fcgi + Action php5-fcgi /php5-fcgi virtual @@ -361,7 +373,13 @@ #ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ fcgi://127.0.0.1:/$1 - SetHandler "proxy:fcgi://127.0.0.1:" + + + SetHandler "proxy:fcgi://127.0.0.1:" + + + SetHandler "proxy:fcgi://127.0.0.1:" + @@ -369,7 +387,13 @@ #ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ unix://|fcgi://localhost//$1 - SetHandler "proxy:unix:|fcgi://localhost" + + + SetHandler "proxy:unix:|fcgi://localhost" + + + SetHandler "proxy:unix:|fcgi://localhost" + -- GitLab From bd95906e6396ddecda1570f2ffdfb0d83095a629 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 21 Feb 2017 15:55:14 +0100 Subject: [PATCH 2/2] Update vhost.conf.master --- server/conf/vhost.conf.master | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master index a303313d3a..dcfea49842 100644 --- a/server/conf/vhost.conf.master +++ b/server/conf/vhost.conf.master @@ -341,7 +341,7 @@ - SetHandler php5-fcgi + SetHandler php5-fcgi SetHandler php5-fcgi @@ -352,7 +352,7 @@ - SetHandler php5-fcgi + SetHandler php5-fcgi SetHandler php5-fcgi -- GitLab