Set Apache to deny access to directories

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

Guess you like

Origin blog.csdn.net/qq_42179736/article/details/131350315