1 # Add a virtual host similar than that (for apache 2.4):
2 # (e.g. in /etc/apache2/sites-available/example.com.conf)
4 # Note that apache has to do authentication/authorization
5 # as well if needed (which will normally be the case).
6 # Normally, AuthBasic is used by DYNDNS systems.
7 # See: http://wiki.apache.org/httpd/PasswordBasicAuth
10 ServerName dyndns.example.com
11 ServerAdmin webmaster@example.com
13 ErrorLog /var/log/apache2/error.log
14 CustomLog /var/log/apache2/access.log combined
16 DocumentRoot /var/www/tdyndns
18 <Directory /var/www/tdyndns>
19 DirectoryIndex tdyndns.py
21 Options ExecCGI FollowSymLinks
24 AuthName "tdyndns authorization"
25 AuthUserFile "/etc/tdyndns/.htpasswd"
33 # Hint: For clients that do not support AuthBasic (if there should be any),
34 # the "AuthBasicFake" parameter might be an option to overcome this.
39 As an example for an non-standard authorization method, we provided the script
40 tdyndns_auth_simplepwd that just checks whether the user is present in the
41 system and whether a certain password is given (supplied via "AuthExternalContext"
45 ServerName dyndns.example.com
46 ServerAdmin webmaster@example.com
48 ErrorLog /var/log/apache2/error.log
49 CustomLog /var/log/apache2/access.log combined
51 DocumentRoot /var/www/tdyndns
53 DefineExternalAuth tdyndnsauth environment /usr/local/bin/tdyndns_auth_simplepwd
55 <Directory /var/www/tdyndns>
56 DirectoryIndex tdyndns.py
58 Options ExecCGI FollowSymLinks
61 AuthBasicProvider external
62 AuthExternal tdyndnsauth
63 AuthExternalContext hygCithOrs5
64 AuthName "tdyndns authorization"