码迷,mamicode.com
首页 > Web开发 > 详细

apache2.4 的新特性

时间:2014-12-03 19:33:33      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:require   color   主机   

apache2.4 的新特性

1:访问控制参数的写法

原本使用 Order Deny / Allow 的方式,改用 Require

require all granted 允许所有访问

require all denied  拒绝所有访问

 

仅允许IP为192.168.1.1的主机访问

<RequireAll>

require all granted

require ip 192.168.1.1 (也可以写成网段)

</RequireAll>

 

禁止192.168.1.2的主机访问,其他的都允许

<RequireAll>

require all granted

require not ip 192.168.1.2

</RequireAll>

 

2:Namevirtualhost参数被移除

 

3:RewriteLogLevel 参数改为 logLevel

 

4:压缩使用mod_deflate 外 , Apache 2.4 中还需要 mod_filter

SSL开启mod_ssl 外 ,Apache 2.4 中还需要 mod_socache_shmcb

apache2.4 的新特性

标签:require   color   主机   

原文地址:http://songxj.blog.51cto.com/620981/1586003

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!