6.4. Using both modules

What happens if we run both modules? The answer is that the modules cooperate as you might hope: if there is an index.html file then it is used; if there isn't then the directory is indexed automatically.


LoadModule	dir_module         /usr/lib/apache2/mod_dir.so
DirectoryIndex	index.html index.htm

# Enable automatic indexing of directories
LoadModule	autoindex_module   /usr/lib/apache2/mod_autoindex.so
Options	+Indexes
IndexOptions	FancyIndexing
...