Skip to content

Commit

Permalink
Update web_server_configuration.rst
Browse files Browse the repository at this point in the history
Commented the fix for PHP-FPM in Apache VirtualHost
More detailed comments
  • Loading branch information
thePanz authored and weaverryan committed Dec 7, 2014
1 parent 0065791 commit f70dbf1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cookbook/configuration/web_server_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f70dbf1

Please sign in to comment.