Skip to content

Commit a4a78d7

Browse files
committed
Merge pull request #2529 from fabpot/apache-authorization
added a note about php-cgi and Apache
2 parents 0254cd3 + 6848972 commit a4a78d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cookbook/configuration/web_server_configuration.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ are:
4141
``AllowOverride None`` and implement the rewrite rules in the ``web/.htaccess``
4242
into the virtualhost config.
4343

44+
If you are using **php-cgi**, Apache does not pass HTTP basic username and
45+
password to PHP by default. To work around this limitation, you should use the
46+
following configuration snippet:
47+
48+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
49+
4450
Nginx
4551
-----
4652

0 commit comments

Comments
 (0)