本文介绍下,Apache服务器报错:You don't have permission to access / on this server的解决方法,供大家参考。
运行中的apache/ target=_blank class=infotextkey>apache服务器,报如下的错误 :
You don't have permission to access / on this server.
解决办法:
在文件httpd.conf中,找到:
复制代码 代码示例:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
修改为:
复制代码 代码示例:
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
重启apache:
复制代码 代码示例:
service httpd restart
报错消失!