Appendix: httpd.conf
LoadModule xmlns_module modules/mod_xmlns.so
LoadModule xhtml_module modules/mod_xhtml.so
LoadModule annotate_module modules/mod_annot.so
LoadModule annot_view_module modules/mod_annot_view.so
LoadModule dublincore_module modules/mod_dublincore.so
<VirtualHost 195.224.39.74>
ServerName www.apachetutor.org
DocumentRoot /usr/www/atutor
AnnotSectionDTD file:///usr/www/atutor/section.dtd
AliasMatch /([a-z]+)\/$ /usr/www/atutor/$1.html
AliasMatch /auth/([a-z]+)\/$ /usr/www/atutor/$1.html
Alias /auth /usr/www/atutor
<Directory /usr/www/atutor>
AddType text/html;charset=utf-8 .edit .annot
AddHandler annot-edit .edit
AddHandler annot-annot .annot
AnnotHeader /path/to/header
AnnotFooter /path/to/footer
<FilesMatch "^[a-z-]+$">
SetOutputFilter xmlns
ForceType text/html;charset=utf-8
XMLNSUseNamespace http://apache.webthing.com/annot on view
XMLNSUseNamespace http://www.w3.org/1999/xhtml on 1.0
XMLNSUseNamespace http://purl.org/dc/elements/1.1/ on hide
</FilesMatch>
</Directory>
<Location /auth>
AuthType Basic
AuthName "Apache Tutorials"
Require valid-user
#(details chopped)
</Location>
</VirtualHost>