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里。
haproxy hdr和path
最新推荐文章于 2024-08-11 23:28:52 发布
本文介绍了haproxy如何处理HTTP请求中的URL路径和头部信息。haproxy可以提取请求URL的路径部分,这对于预取缓存和数据库信息的聚合很有帮助。同时,它也能检查HTTP头部字段,当头部不存在或无值时,会应用默认的负载均衡策略。
摘要由CSDN通过智能技术生成