网站首页/win8系统列表/内容

win8下wamp用http://localhost访问出现403防范

win8系统2024-04-06阅读

win8新装的wamp,打开浏览器输入localhost就发现403错误,经测试输入127.0.0.1可以正常访问。

解决方法如下。

打开httpd.conf

搜索Deny from all定位到

    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all

Deny from all改为Allow from all

继续搜索Deny from all定位到

#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

Deny from all改为Allow from all

 

如果不能用localhost打开phpmyadmin,请看下面

找到并打开wamp/alias/phpmyadmin.conf

找到

Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

Allow from 127.0.0.1改为Allow from ::1

相关阅读