apache无法远程访问的解决办法

来源:互联网 发布:淘宝商品数量查询工具 编辑:程序博客网 时间:2024/05/16 12:46

在C盘安装 wamp3 32位,把网站的目录放在其他盘上,配置完并且本机可以自己可以访问了。
但是问题来了:

局域网中无法访问到我的apache服务器,提示 Forbidden You don’t have permission to access / on this server.

解决办法 :

方法1.
httpd.conf 下

<Directory />    AllowOverride none    #Require all denied   //备注或去掉该段代码  拒绝所有请求</Directory>DocumentRoot "D:/wamp3/www"<Directory "D:/wamp3/www/">    Options +Indexes +FollowSymLinks    AllowOverride all    #Require local   //关键 本地请求要去掉</Directory>

其实就是 去掉 Require all denied 和 Require local

0 0
原创粉丝点击