zoukankan      html  css  js  c++  java
  • wampserver2.5 apache2.4.9:forbidden,本机可以访问,局域网内部能访问。

    wampserver2.5 apache2.4.9:forbidden,本机可以访问,局域网内部能访问。

    因为做项目,多人分工,需要局域网内访问各自的项目。

    然后安装了wampserver2.5,Apache版本比较高2.4.9,局域网内的其他用户需要通过192.168.16.x来访问我的项目。其他人的都能正常 访问,就是我的不行。高了几个小时。悲哀啊。

    无论是list监听:

    #Listen 12.34.56.78:80
    Listen 192.168.16.x:80
    #Listen [::0]:80

    还是服务名:

    #ServerName 192.168.16.x:80

    或是httpd-vhosts.conf:

    <VirtualHost 192.168.16.x:80>
    ServerAdmin webmaster@xxx.com
    DocumentRoot "F:wampwwwmyhangxian"
    ServerName xxx.com
    #ErrorLog "F:/wamp/www/xxx/log/error.log"
    #CustomLog "F:/wamp/www/xxx/log/access.log" common
    <Directory "F:/wamp/www/xxx">
    #Options Indexes FollowSymLinks
    #AllowOverride all
    #Order Allow,Deny
    Allow from all
    Allow from 192.168.16.x
    </Directory>


    </VirtualHost>

    搞死了就是不能访问。

    最后无意间在这里发现了答案:

    <Directory "f:/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   
        Require all granted 
    
    </Directory>
    

      

    将 Require local   修改成:    Require all granted 

    以此为鉴。权当记录。
  • 相关阅读:
    python实现指定目录下批量文件的单词计数:串行版本
    PythonPP+lambda:示例
    python面向对象编程基础
    《平凡的世界》读后感
    代码
    【转】提高沟通效果的十个技巧
    LODOP中page-break-before:always给div分页
    LODOP超文本简短问答和相关内容
    Lodop打印较大的超出纸张的图片
    Lodop打印设计矩形重合预览线条变粗
  • 原文地址:https://www.cnblogs.com/achengmu/p/5901428.html
Copyright © 2011-2022 走看看