打开httpd.conf
查找Options Indexes FollowSymLinks
修改为:
Options -Indexes FollowSymLinks
修改保存退出,重新启动apache
Forbidden
You don't have permission to access / on this server.
Apache/2.0.53 (Unix) Server at 192.168.0.1Port 80 开启浏览: <Directory /> Options FollowSymLinks AllowOverride None Options Indexes #就加这句就可以了,目录按需要选择 </Directory>