Skip to content

Commit f70dbf1

Browse files
thePanzweaverryan
authored andcommitted
Update web_server_configuration.rst
Commented the fix for PHP-FPM in Apache VirtualHost More detailed comments
1 parent 0065791 commit f70dbf1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cookbook/configuration/web_server_configuration.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ directive to pass requests for PHP files to PHP FPM:
127127
ServerName domain.tld
128128
ServerAlias www.domain.tld
129129
130-
# Force Apache to pass the Authorization header to PHP
131-
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
130+
# Uncomment the following line to force Apache to pass the Authorization
131+
# header to PHP: required for "basic_auth" under PHP-FPM and FastCGI
132+
#
133+
# SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
132134
133135
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1
134136

0 commit comments

Comments
 (0)