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

相關文章
相關標籤/搜索