Apache 禁止展示目录

    xiaoxiao2023-10-14  151

    禁止原因:

    防止黑客窃取资源等

    禁止方法:

    将 E:\Webtest\wamp64\bin\apache\apache2.4.23\conf\extra\httpd-vhosts.conf下`

    <VirtualHost *:80> ServerName localhost DocumentRoot E:/Webtest/wamp64/www <Directory “E:/Webtest/wamp64/www/”> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local 改为: <VirtualHost *:80> ServerName localhost DocumentRoot E:/Webtest/wamp64/www <Directory “E:/Webtest/wamp64/www/”> Options -Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local 然后重启Apache

    最新回复(0)