apache httpd.conf 配置局域网访问

<Directory "E:/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 # 修改为: Options  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.
  Require all granted      #必须,允许外部访问
  Order Deny,Allow
  Allow from All
  </Directory>

原文地址:https://www.cnblogs.com/haohaosky/p/6384455.html