zoukankan      html  css  js  c++  java
  • haroxy hdr

    ACL derivatives :ACL的衍生物
    hdr([<name>[,<occ>]])     : exact string match 字符串精确匹配
    hdr_beg([<name>[,<occ>]]) : prefix match        前缀匹配
    hdr_dir([<name>[,<occ>]]) : subdir match
    hdr_dom([<name>[,<occ>]]) : domain match
    hdr_end([<name>[,<occ>]]) : suffix match
    hdr_len([<name>[,<occ>]]) : length match
    hdr_reg([<name>[,<occ>]]) : regex match
    hdr_sub([<name>[,<occ>]]) : substring match
    
    hdr 表示header
    
    
      acl host_www    hdr_beg(host) -i www   ###www开头
    

    acl host_static hdr_beg(host) -i img. video. download. ftp. ##imge. 等开头

    所有的ACL-具体的标准意味着 一个默认的匹配方法,最经常的,

    这些标准是通过连接原始的样子获取方法组成, 匹配方法 比如

    "hdr_beg"  应用于开始匹配样子  取回使用hdr 获取方法。
    
        <hdr>     is the name of a HTTP header in which to fetch the IP to bind to.
    

    This is the name of a comma-separated header list which can
    contain multiple IP addresses. By default, the last occurrence is
    used. This is designed to work with the X-Forwarded-For header
    and to automatically bind to the client’s IP address as seen
    by previous proxy, typically Stunnel. In order to use another
    occurrence from the last one, please see the parameter
    below. When the header (or occurrence) is not found, no binding
    is performed so that the proxy’s default IP address is used. Also
    keep in mind that the header name is case insensitive, as for any
    HTTP header.

    acl monitor hdr_beg(host) -i monitor.test.com #定义ACL名称,对应的请求的主机头是monitor.test.com

  • 相关阅读:
    linux上配置apache实现二级域名访问目录
    C++数组的使用
    linux 上安装C++编译环境
    qt下qmake:提示could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
    Qt4.8.5移植
    oracle使用已有vid快速新建虚拟机
    各种编程语言鸡汤网站
    linux下 git使用小记下
    CodeForces-650B Image Preview 二分+模拟
    HDU-6351 Beautiful Now 全排列暴力
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6200060.html
Copyright © 2011-2022 走看看