If no DirectoryIndex
(normally configured as index.html
, index.htm
, index.php
, welcome.html
) present in a directory, and if mod_autoindex
is enabled (which by default is normally enabled), Apache
would list the directory contents, as the following;
While useful for some cases, you would want to disable this feature (perhaps for security reason). There are few ways to do this.