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:\wamp\www\myhangxian"
    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
以此为鉴。权当记录。
wampserver2.5 apache2.4.9:forbidden,本机可以访问,局域网内部能访问。
原文:http://www.cnblogs.com/achengmu/p/5901428.html