【发布时间】:2022-01-14 11:27:47
【问题描述】:
我想在 haproxy 的前端块中设置一个变量,以便它可以在后端块中使用。
我有:
http-request set-var(txn.backend) "host.azurewebsites.net",lower if { path -m str /xc }
但 haproxy 无法解析此内容并出现以下错误:
[ALERT] (1) : config : parsing [/usr/local/etc/haproxy/haproxy.cfg:35] : error detected in frontend 'http' while parsing 'http-request set-var(txn.backend)' rule : unknown fetch method 'host.azurewebsites.net'.
这似乎是一件非常简单的事情,但我不知所措!
【问题讨论】:
标签: haproxy