wamp 局域网无法访问的解决方案

作者: admin 日期: 2016-06-27 10:21:50 人气: - 评论: 0

电脑安装好了wamp2.5之后发现从本机之外无法访问80端口,报403错误,网上很多方法都过时了,

我的wamp是安装在c盘下面,解决方案就是打开httpd.conf 文件找到下面这样的代码块

<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.4/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:

    #   AllowOverride FileInfo AuthConfig Limit

    #

    AllowOverride all


    #

    # Controls who can get stuff from this server.

    #


#   onlineoffline tag - don't remove

    Require local

</Directory>



在其中加入 Require all granted 这样一句就可以了


相关内容

发表评论
更多 网友评论0 条评论)
暂无评论

Copyright © 2012-2014 我的代码板 Inc. 保留所有权利。

页面耗时0.0232秒, 内存占用1.82 MB, 访问数据库13次

闽ICP备15009223号-1