wamp 403 禁止访问

http://blog.sina.com.cn/s/blog_4a60ba9c01014nch.html

我的电脑使用的是wamp5,把php项目发布到www文件夹下后,使用http://localhost可以打开网站,然而采用我的局域网中的IP地址访问(如:http://192.168.0.108/),提示403错误,无权访问该页面。在网上找了好多资料,最后终于找到了,解决方案如下:我的wamp装在c盘下,需要修改一下C:\wamp\Apache2\conf下的httpd.conf文件中的一些权限设置找到下面Directory开头的下面两段:

<Directory "c:/wamp/www/"> 

 

   #    # Possible values for the Options directive are "None", "All",    # or any combination of:    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews    #    # Note that "MultiViews" must be named *explicitly* --- "Options All"    # doesn't give it to you.    #    # The Options directive is both complicated and important.  Please see    # http://httpd.apache.org/docs/2.2/mod/core.html#options    # for more information.    #    Options Indexes FollowSymLinks
    #    # AllowOverride controls what directives may be placed in .htaccess files.    # It can be "All", "None", or any combination of the keywords:    #   Options FileInfo AuthConfig Limit    #    AllowOverride all
    #    # Controls who can get stuff from this server.    #
#   onlineoffline tag - don't remove

 

    Order Deny,Allow

 

    Deny from all

 

    Allow from 127.0.0.1
</Directory>

 

<Directory "c:/wamp/apache2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Deny from all
</Directory>

 

   解决方法:1.将Allow from 127.0.0.1改为Allow from all 

                 2.将Deny from all改为Allow from a

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

思月行云

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值