When installing Apache on a Linux system, the directory content listing is enabled by default. This may be a desirable features in some scenarios, but it's a potential security hole in others. It's easy enough to turn this setting on or off for each website (virtual host) that you have set up.
In this guide, we'll go over the step by step instructions to edit the Apache configuration to hide directory content listing for Apache.
This is a companion discussion topic for the original entry at https://linuxconfig.org/turn-off-directory-browsing-on-apache