apache 禁止访问目录树

web服务器中,无index.html、index.php等文件时,访问此url会导致浏览此目录,
禁止的方法如下:

打开httpd.conf,
找到 Options Indexes FollowSymLinks这句,
改为 Options FollowSymLinks
重点是移除 Indexes

原文地址:https://www.cnblogs.com/lcinx/p/10570828.html