Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将当前端口号添加到标题中。我试过了:
reqadd port:\ dst_port
但它添加dst_port而不是数字。
dst_port
有没有办法添加变量 dst_port 做标题?
尝试:
http-request set-header X-Port %[dst_port]
(应该与 haproxy 1.5 一起使用)