wamp出现拒绝访问

时间:2022-02-10 05:52:44

造成这个问题的原因是Apache 的http.conf内的默认配置是:

# 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
Allow from all

</Directory>


记得重启!搞定!

 

如果访问phpmyadmin的时候不能访问,出现:You don't have permission to access /phpmyadmin/ on this server.

同样,在wamp\alias下找到phpmyadmin.conf,

<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>


改为

<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>


重启,搞定!

微信公众号:rs_yuanheng,该公众号提供天气查询,快递查询,四六级成绩查询,汽车火车大巴等信息查询,还可以与机器人聊天,有兴趣的可以关注一下,望各位多多支持

wamp出现拒绝访问