zoukankan      html  css  js  c++  java
  • vwampserver2.5-apache2.4.9允许外部访问的配置

    打开..wampbinapacheapache2.4.9confhttpd.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
        Require all granted   #添加允许外部访问
     
        #
        # Controls who can get stuff from this server.
        #
     
        #   onlineoffline tag - don‘t remove
        # Require local  #注释请求本机访问


    </Directory>

    重启服务,再访问下就可以了。

    例如:(以下我改好的)

    DocumentRoot "D:/wamp/www/"

    #
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    #
    # First, we configure the "default" to be a very restrictive set of
    # features.
    #
    <Directory />
    AllowOverride all
    # Require all denied
    Require all granted
    </Directory>

    #
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    #

    <Directory "D:/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>

  • 相关阅读:
    【python37--面向对象】
    【python36--对象】
    流畅的python,Fluent Python 第十九章笔记 (动态属性和特性)
    流畅的python,Fluent Python 第十八章笔记 (使用asyncio包处理并发)
    Python异常的处理记录
    Python 生成器与它的 send,throw,close 方法(转帖以及记录)
    asyncio:异步I/O、事件循环和并发工具(持续跟新中)
    Enum的使用记录。
    mac下nginx的安装和配置,已经相关设置(转帖)。
    流畅的python,Fluent Python 第十七章笔记 (使用future处理并发)
  • 原文地址:https://www.cnblogs.com/hfdp/p/5050534.html
Copyright © 2011-2022 走看看