X-Git-Url: https://git.toastfreeware.priv.at/toast/tdyndns.git/blobdiff_plain/13add26fdd262a2153cffd44e3851c093b0b8c7f..25ea32904b9ca333a10d45d3a68f822a64505737:/doc/apache2.txt diff --git a/doc/apache2.txt b/doc/apache2.txt index b4458be..db60660 100644 --- a/doc/apache2.txt +++ b/doc/apache2.txt @@ -1,17 +1,22 @@ # 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 ServerName dyndns.example.com ServerAdmin webmaster@example.com - DocumentRoot /var/www/dyndns - DirectoryIndex dyndns.py + DocumentRoot /var/www/tdyndns + DirectoryIndex tdyndns.py ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined - + SetHandler cgi-script Options ExecCGI FollowSymLinks + RewriteEngine on + RewriteCond %{HTTP:Authorization} ^(.*) + RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]