Websites hosted in cPanel by default are configured to display the index of a directory whenever DirectoryIndex files such as index.html or index.php are not present. This is due …
Read More
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.