安装wamp后,127.0.0.1可以访问,但是localhost不能访问

来自:互联网
时间:2019-08-07
阅读:

安装wamp后,127.0.0.1可以访问,但是localhost不能访问,出现报错:“error You don't have permission to access”

解决方法如下:

# 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.

同样,在wampalias下找到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>

记得,一定要重启!

返回顶部
顶部