From 6848972a7c7f3419e7f8069c649be938b9f69452 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sun, 21 Apr 2013 10:04:51 +0200 Subject: [PATCH] added a note about php-cgi and Apache --- cookbook/configuration/web_server_configuration.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbook/configuration/web_server_configuration.rst b/cookbook/configuration/web_server_configuration.rst index b498d155088..bdd1644f0f0 100644 --- a/cookbook/configuration/web_server_configuration.rst +++ b/cookbook/configuration/web_server_configuration.rst @@ -41,6 +41,12 @@ are: ``AllowOverride None`` and implement the rewrite rules in the ``web/.htaccess`` into the virtualhost config. +If you are using **php-cgi**, Apache does not pass HTTP basic username and +password to PHP by default. To work around this limitation, you should use the +following configuration snippet: + + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + Nginx -----