Open the apache configuration file /etc/httpd/conf/httpd.conf.
vim /etc/httpd/conf/httpd.conf
Find the content below in a file and modify the highlighted content.
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
When finished, it should look like this.
Options -Indexes +FollowSymLinks
AllowOverride None
Require all granted
Restart the Apache service by using below command:
systemctl restart httpd