# Add a virtual host similar than that (for apache 2.4): # (e.g. in /etc/apache2/sites-available/example.com.conf) # # Note that apache has to do authentication/authorization # as well if needed (which will normally be the case). # Normally, AuthBasic is used by DYNDNS systems. # See: http://wiki.apache.org/httpd/PasswordBasicAuth ServerName dyndns.example.com ServerAdmin webmaster@example.com ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined DocumentRoot /var/www/tdyndns DirectoryIndex tdyndns.py SetHandler cgi-script Options ExecCGI FollowSymLinks AuthType Basic AuthName "tdyndns authorization" AuthUserFile "/etc/tdyndns/.htpasswd" Require valid-user # Hint: For clients that do not support AuthBasic (if there should be any), # the "AuthBasicFake" parameter might be an option to overcome this. As an example for an non-standard authorization method, we provided the script tdyndns_auth_simplepwd that just checks whether the user is present in the system and whether a certain password is given (supplied via "AuthExternalContext" below): ServerName dyndns.example.com ServerAdmin webmaster@example.com ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined DocumentRoot /var/www/tdyndns DefineExternalAuth tdyndnsauth environment /usr/local/bin/tdyndns_auth_simplepwd DirectoryIndex tdyndns.py SetHandler cgi-script Options ExecCGI FollowSymLinks AuthType Basic AuthBasicProvider external AuthExternal tdyndnsauth AuthExternalContext hygCithOrs5 AuthName "tdyndns authorization" Require valid-user