wampserver2.5 apache2.4.9:forbidden,本机可以访问,局域网内部能访问。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 [email protected]
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,本机可以访问,局域网内部能访问。的主要内容,如果未能解决你的问题,请参考以下文章
Apache2.4.9本地访问正常但是在局域网或外网IP拒绝访问
Wamp2.5(Apache2.4.9)外网访问403(Forbidden)错误
我的 Apache 2.4.9 (Win32?) 上是不是禁用了 SSLv3