
Chapter 6. Handling directories
Several options we will meet rely on a specific module and their use must follow the
LoadModule lin in the configuration file.
LoadModule autoindex_module modules/mod_autoindex.so
Options +Indexes
Figure 6-6. httpd.conf: Loading and enabling autoindex_module
And now, if we ask for the / URL we get the list of the single file (index.html) that
appears in the top-level directory.
Figure 6-7. The top-level listing
By default, the index produced is a very simple one (an itemized list in HTML). The
module provides a command, IndexOptions, which allows us to present a bit more
information about the files.
To see it in operation we will add a simple IndexOptions command to our configu-
ration file to turn on “fancy indexing”.
IndexOptions FancyIndexing
Figure 6-8. httpd.conf: Turning on fancy indexing
Now when we ask for the / URL we get a different format of output.
34
Komentáře k této Příručce