diff --git a/.htaccess b/.htaccess
index 3e53e027cb3653fcedf4ccc82e3bb49a6568c671..1e08407d49371e9029a900f4ceb9efd97e671809 100644
--- a/.htaccess
+++ b/.htaccess
@@ -63,6 +63,10 @@ DirectoryIndex index.php index.html index.htm
   RewriteCond %{HTTPS} on
   RewriteRule ^ - [E=protossl:s]
 
+  # Make sure Authorization HTTP header is available to PHP
+  # even when running as CGI or FastCGI.
+  RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+
   # Block access to "hidden" directories whose names begin with a period. This
   # includes directories used by version control systems such as Subversion or
   # Git to store control files. Files whose names begin with a period, as well