wamp本地能访问,但局域网不能访问的解决办法

 wamp安装好之后,本地访问已经没问题了,可是局域网的用户仍是访问不了。 html

通过了昨天的那一系列的探索,这个问题的所在倒也好找。因而找到了httpd.conf文件。这个是Apache的配置文件。apache

       稍微浏览一下便找到解决方法,看这:ide

 

<Directory "C:/wamp/www">this

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

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

    #
    # 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
 Allow from allserver

</Directory>htm

相关文章
相关标签/搜索