How to disable directory listing in Apache
DirectoryIndex (normally configured as
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.