主页 > Windows教程 >

win8下wamp用http://localhost访问出现403禁止

Windows教程 2016-05-05

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


标签: Windows操作系统windows7windows教程windows技巧windows8windows10

电脑软硬件教程网 Copyright © 2016-2030 www.computer26.com. Some Rights Reserved.