zoukankan      html  css  js  c++  java
  • haproxy hdr和path

    path : string
      This extracts the request's URL path, which starts at the first slash and
      ends before the question mark (without the host part). A typical use is with
      prefetch-capable caches, and with portals which need to aggregate multiple
      information from databases and keep them in caches. Note that with outgoing
      caches, it would be wiser to use "url" instead. With ACLs, it's typically
      used to match exact file names (eg: "/login.php"), or directory parts using
      the derivative forms. See also the "url" and "base" fetch methods.
      
      
      路径: 字符串
      
      提取请求的URL路径,从第一个斜线开始和在问号前结束
     http://192.168.32.101:3000/api/getcode?env=zj&phone=18072722237(没有主机部分)
     
     一个典型的使用是预取缓存,和需要聚合多个数据库信息和把它们保持在caches里。
     
     
          hdr(<name>) The HTTP header <name> will be looked up in each HTTP
                      request. Just as with the equivalent ACL 'hdr()' function,
                      the header name in parenthesis is not case sensitive. If the
                      header is absent or if it does not contain any value, the
                      roundrobin algorithm is applied instead.
     
     
        HTTP 头<name> 会在每个HTTP请求里查找,等效于ACL 'hdr()' function,
    	
    	header name 在插入部分是不区分大小写的,如果header 是不存在的 或者如果它不包含任何值
     
     
       所有的ACL-指定的标准说明一个默认的匹配方法,最常见的是,那些标准是有把原始的例子获取方法和匹配方法联系在一起。
       
       比如, "hdr_beg" 应用"beg"匹配 例子 检索使用"hdr" 获取方法。
       
       
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     

  • 相关阅读:
    词典 字符串+DP
    N 色球 数学
    loj6482. LJJ 爱数数
    loj2671. 「NOI2012」骑行川藏
    无标号生成树计数
    uoj272. 【清华集训2016】石家庄的工人阶级队伍比较坚强
    uoj328. 【UTR #3】量子破碎
    loj6402. yww 与校门外的树
    loj6674. 赛道修建
    06:MySQL分组查询子查询笔记6
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199316.html
Copyright © 2011-2022 走看看