Apache displays the problem of directory listing and icons directory

Hits: 0

[For insecure configuration of apache] , you can access the website directory or the icons directory
(1) Prohibit access to the website directory Modify the httpd.conf file of apache, delete the word “Indexes” in Options Indexes FollowSymLinks in the
configuration file , and restart apache to take effect
.

(2) Prohibit access to the icons directory
Modify the apache/conf/extra/httpd-autoindex.conf configuration file
After commenting the following content in the configuration file, restart apache

#Alias /icons/ "${SRVROOT}/icons/"
#<Directory "${SRVROOT}/icons">
    #Options Indexes FollowSymLinks
    #AllowOverride None
#Require all granted
#</Directory>

You may also like...

Leave a Reply

Your email address will not be published.