Added RewriteEngine apache2 configuration.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 25 Mar 2014 22:51:11 +0000 (23:51 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 25 Mar 2014 22:53:07 +0000 (23:53 +0100)
doc/apache2.txt

index b4458be..bfeb12f 100644 (file)
@@ -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.
 
 <VirtualHost *:80>
   SSLEngine Off
@@ -12,6 +14,9 @@
   <Directory /var/www/dyndns>
       SetHandler cgi-script
       Options ExecCGI FollowSymLinks
+      RewriteEngine on
+      RewriteCond %{HTTP:Authorization} ^(.*)
+      RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
   </Directory>
 </VirtualHost>