From 81976c869918c3e736621536164a7bb3aaaf2b27 Mon Sep 17 00:00:00 2001 From: Panz Date: Fri, 28 Nov 2014 21:47:37 +0100 Subject: [PATCH 1/2] Update web_server_configuration.rst Fixes for issue #4527 https://github.com/symfony/symfony-docs/issues/4527 --- cookbook/configuration/web_server_configuration.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbook/configuration/web_server_configuration.rst b/cookbook/configuration/web_server_configuration.rst index f92c801a724..26db6a578d3 100644 --- a/cookbook/configuration/web_server_configuration.rst +++ b/cookbook/configuration/web_server_configuration.rst @@ -127,6 +127,9 @@ directive to pass requests for PHP files to PHP FPM: ServerName domain.tld ServerAlias www.domain.tld + # Force Apache to pass the Authorization header to PHP + SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 + ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1 DocumentRoot /var/www/project/web From f8e0d3e3fcb2be2400d17845efacc8f66a8638b5 Mon Sep 17 00:00:00 2001 From: Panz Date: Fri, 28 Nov 2014 22:36:37 +0100 Subject: [PATCH 2/2] Update web_server_configuration.rst Commented the fix for PHP-FPM in Apache VirtualHost More detailed comments --- cookbook/configuration/web_server_configuration.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cookbook/configuration/web_server_configuration.rst b/cookbook/configuration/web_server_configuration.rst index 26db6a578d3..c7ac9f015ac 100644 --- a/cookbook/configuration/web_server_configuration.rst +++ b/cookbook/configuration/web_server_configuration.rst @@ -127,8 +127,10 @@ directive to pass requests for PHP files to PHP FPM: ServerName domain.tld ServerAlias www.domain.tld - # Force Apache to pass the Authorization header to PHP - SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 + # Uncomment the following line to force Apache to pass the Authorization + # header to PHP: required for "basic_auth" under PHP-FPM and FastCGI + # + # SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1 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