From 99a3fb9ca108016a049aa296162432a5cc76bb8b Mon Sep 17 00:00:00 2001 From: TeLiXj Date: Mon, 29 Dec 2014 18:15:08 +0100 Subject: [PATCH 1/3] Update web_server_configuration.rst I had problems using ProxyPassMatch and mod_rewrite and now I use SetHandler to send the request to proxy. This change works fine and should be the standar configuration in the future for Apache and php-fpm. You can read the php developers discussion here http://www.serverphorums.com/read.php?7,956732 or some about problems fixed here http://blog.famillecollet.com/post/2014/03/28/PHP-FPM-and-HTTPD-2.4-improvement --- cookbook/configuration/web_server_configuration.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cookbook/configuration/web_server_configuration.rst b/cookbook/configuration/web_server_configuration.rst index c7ac9f015ac..69e29461cb6 100644 --- a/cookbook/configuration/web_server_configuration.rst +++ b/cookbook/configuration/web_server_configuration.rst @@ -132,8 +132,14 @@ directive to pass requests for PHP files to PHP FPM: # # SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 - ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1 - + # For Apache 2.4.9 or upper + # This avoid problems with ProxyPassMatch and mod_rewrite or mod_autoindex + + SetHandler proxy:fcgi://127.0.0.1:9000 + + # If you use Apache version below 2.4.9 you must consider update or use this instead + # ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1 + DocumentRoot /var/www/project/web # enable the .htaccess rewrites From 65f55de5205fc555b980821372321081db2c2a03 Mon Sep 17 00:00:00 2001 From: TeLiXj Date: Mon, 29 Dec 2014 18:40:34 +0100 Subject: [PATCH 2/3] Update web_server_configuration.rst --- cookbook/configuration/web_server_configuration.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/configuration/web_server_configuration.rst b/cookbook/configuration/web_server_configuration.rst index 69e29461cb6..44f0a4eff89 100644 --- a/cookbook/configuration/web_server_configuration.rst +++ b/cookbook/configuration/web_server_configuration.rst @@ -132,8 +132,8 @@ directive to pass requests for PHP files to PHP FPM: # # SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 - # For Apache 2.4.9 or upper - # This avoid problems with ProxyPassMatch and mod_rewrite or mod_autoindex + # For Apache 2.4.9 or higher + # Using SetHandler avoids issues with using ProxyPassMatch in combination with mod_rewrite or mod_autoindex SetHandler proxy:fcgi://127.0.0.1:9000 From 632f2aa2784a1aae12832cfd13783f5b79e38800 Mon Sep 17 00:00:00 2001 From: TeLiXj Date: Mon, 29 Dec 2014 18:49:14 +0100 Subject: [PATCH 3/3] Update web_server_configuration.rst --- cookbook/configuration/web_server_configuration.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbook/configuration/web_server_configuration.rst b/cookbook/configuration/web_server_configuration.rst index 44f0a4eff89..8a46dbbc9e2 100644 --- a/cookbook/configuration/web_server_configuration.rst +++ b/cookbook/configuration/web_server_configuration.rst @@ -133,7 +133,8 @@ directive to pass requests for PHP files to PHP FPM: # SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 # For Apache 2.4.9 or higher - # Using SetHandler avoids issues with using ProxyPassMatch in combination with mod_rewrite or mod_autoindex + # Using SetHandler avoids issues with using ProxyPassMatch in combination + # with mod_rewrite or mod_autoindex SetHandler proxy:fcgi://127.0.0.1:9000 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy