Set Apache to deny access to directories
Enter the apache configuration file httpd.conf and find:
vim /etc/httpd/conf/httpd.conf
Options Indexes FollowSymLinks
is modified to:
Options FollowSymLinks
actually removes Indexes. Indexes means that if the current directory does not have index.html, the directory structure will be displayed.
Restart the Apache server