Making Our Own Indexes

In the last section, we looked at Apache’s indexing facilities. So far we have not been very adventurous with our own indexing of the document root directory. We replaced Apache’s adequate directory listing with a custom-made .html file: index.html (see Chapter 3).

We can improve on index.html with the DirectoryIndex command. This command specifies a list of possible index files to be used in order.

Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.