Configuration

As with any Apache module, you must modify your httpd.conf to enable mod_annodex. You will need to make sure the module is loaded and the files get handled correctly.

Loading mod_annodex

# Support for Annodex media (Apache 1.3)
LoadModule annodex_module /usr/lib/apache/1.3/mod_annodex.so

# Support for Annodex media (Apache 2.0)
#LoadModule annodex_module /usr/lib/apache2/modules/mod_annodex.so

Specifying which files are handled by mod_annodex

The following example sets mod_annodex to be the handler for all .anx files:

<IfModule mod_annodex.c>
# Enable mod_annodex for all .anx files
AddHandler annodex .anx
</IfModule>

You may also want to modify the DirectoryIndex
to enable use of annodex media as a valid default for directories.

DirectoryIndex index.anx