DirectoryIndex
DirectoryIndex is a configuration directive used by web servers to specify the default file name to serve when a client requests a URL that maps to a directory rather than a specific file. It lists one or more filenames.
In Apache HTTP Server, DirectoryIndex is provided by the mod_dir module and can be set globally in
If a request targets a directory and none of the listed index files is present, the server's
The directive is commonly used to prefer PHP-backed index pages or static HTML. It interacts with other
Security note: Relying on DirectoryIndex to hide files is not a complete security measure; ensure directory
See also: mod_dir, Directory, httpd.conf, index directive in Nginx, Default Document in IIS.