Skip to content

Commit 71495e8

Browse files
committed
feature #4528 Update web_server_configuration.rst (thePanz)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #4528). Discussion ---------- Update web_server_configuration.rst Fixes for issue #4527 Commits ------- f70dbf1 Update web_server_configuration.rst 0065791 Update web_server_configuration.rst
2 parents 3b1611d + f70dbf1 commit 71495e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cookbook/configuration/web_server_configuration.rst

+5
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ directive to pass requests for PHP files to PHP FPM:
127127
ServerName domain.tld
128128
ServerAlias www.domain.tld
129129
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
134+
130135
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/project/web/$1
131136
132137
DocumentRoot /var/www/project/web

0 commit comments

Comments
 (0)