From 58bc2f42632c8ddda0fb245e24e2ab13841617c8 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Tue, 25 Mar 2014 23:51:11 +0100 Subject: [PATCH] Added RewriteEngine apache2 configuration. --- doc/apache2.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/apache2.txt b/doc/apache2.txt index b4458be..bfeb12f 100644 --- a/doc/apache2.txt +++ b/doc/apache2.txt @@ -1,5 +1,7 @@ # Add a virtual host similar than that: # (e.g. in /etc/apache2/sites-available/example.com.conf) +# +# The Rewrite* lines are necessary to prevent mod_cgi to filter the Authorization HTTP header. SSLEngine Off @@ -12,6 +14,9 @@ SetHandler cgi-script Options ExecCGI FollowSymLinks + RewriteEngine on + RewriteCond %{HTTP:Authorization} ^(.*) + RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] -- 2.39.5