apache2.2与2.4中的访问控制语句比较

回复 收藏
本帖最后由 xingzhihai 于 2015-8-7 00:37 编辑



    【拒绝所有请求】
    2.2配置:
    1. Order deny,allow
    2. Deny from all

    2.4配置:
    1. Require all denied
    【允许所有请求】
    2.2配置:
    1. Order allow,deny
    2. Allow from all
    2.4配置:
    1. Require all granted



    【允许example.org域访问所有主机,拒绝其他主机访问。】
    2.2配置:
    1. Order Deny,Allow
    2. Deny from all
    3. Allow from example.org
    2.4配置:
    1. Require host example.org
    【允许其他主机访问,拒绝example.org域访问所有主机】
    2.2配置:
    1. Order Allow,Deny
    2. Allow from all
    3. Deny from  example.org
    2.4配置:
    1.     Require all granted
    2.     Require not host example.org

    注:【**】无特别说明时代表注释
2015-08-07 00:38 举报
已邀请:
0

xingzhihai

赞同来自:

本帖最后由 xingzhihai 于 2015-8-7 00:43 编辑

相关帖子:            
              apache2.2 到 2.4后配置文件需要更改的部分
             http://www.apelearn.com/bbs/fo ... D5240
相关文档:
             Upgrading to 2.4 from 2.2            
            http://httpd.apache.org/docs/2.4/upgrading.html


附上我的博客:
              http://starocean.top/blog/




回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
  • 评分区间
  • 学分
  • -30 ~ 30
可选评分理由: