DirectoryIndex file
Where file
is a file name.
Only one DirectoryIndex directive is allowed in the server configuration file.
Note that under HTTPd 1.5 and above, multiple filenames may be specified for the DirectoryIndex directive. The file that matches the leftmost filespec will be used for the index.
DirectoryIndex index.html
DirectoryIndex .index.html
This would set DirectoryIndex to .index.html. A request for
/dir
would cause the server to look for the file DocumentRoot/dir/.index.html
. If
found, the server would send it back to the client. Otherwise, it
would create and return an index from the filesystem.