1 # Add a virtual host similar than that:
2 # (e.g. in /etc/apache2/sites-available/example.com.conf)
4 # The Rewrite* lines are necessary to prevent mod_cgi to filter the Authorization HTTP header.
8 ServerName dyndns.example.com
9 ServerAdmin webmaster@example.com
10 DocumentRoot /var/www/tdyndns
11 DirectoryIndex tdyndns.py
12 ErrorLog /var/log/apache2/error.log
13 CustomLog /var/log/apache2/access.log combined
14 <Directory /var/www/tdyndns>
16 Options ExecCGI FollowSymLinks
18 RewriteCond %{HTTP:Authorization} ^(.*)
19 RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]