1.出现这种错误,一般用的web服务器是Apache
2.找到:apache配置文件,打开httpd.conf 文件,做如下修改:
第一处:找到
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
修改成
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
# Deny from all
Allow from all
#允许所有访问
Satisfy all
</Directory>
第二处:找到:
# onlineoffline tag - don‘t remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
修改成:
# onlineoffline tag - don‘t remove
Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
Allow from all
</Directory>
3.重启Apache服务。
HTTP错误:Forbidden You don't have permission to access …… on this server.
时间: 2024-10-02 10:25:40