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" 获取方法。
       
       
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     

  • 相关阅读:
    CSUST 8.4 早训
    CSUST 8.5 早训
    hdu1542 Atlantis 线段树--扫描线求面积并
    hdu1540 Tunnel Warfare 线段树/树状数组
    hdu1535 Invitation Cards 最短路
    hdu1358 Period KMP
    SQL Server 向数据库中创建表并添加数据
    初次实践数据库--SQL Server2016
    hdu1301 Jungle Roads 最小生成树
    hdu1281 棋盘游戏 二分图最大匹配
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199316.html
Copyright © 2011-2022 走看看