apache配置问题:局域网和本机能访问,但是外网无法访问

来源:互联网 发布:热处理技术数据手册 编辑:程序博客网 时间:2024/05/17 22:21

问题:我的配置如下,本地服务器可以访问,但是其他客户端不能访问。问题出在Require all denied、Require local上面

ServerName localhost:80


<Directory />
    AllowOverride none
    Require all denied
</Directory>
 
DocumentRoot "f:/wamp/www/"
<Directory "f:/wamp/www/">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require local

</Directory>

关于apache2.4+ 与之前版本配置区别

2.2 configuration:

Order deny,allowDeny from all

2.4 configuration:

Require all denied

2.2 configuration:

Order allow,denyAllow from all

2.4 configuration:

Require all granted
其他配置区别见:http://httpd.apache.org/docs/2.4/upgrading.html

阅读全文
0 0