haproxy select 连接模式基于 url
haproxy select connection modes based on url
我想为一个请求设置一个特殊的连接模式 (httpclose) url,所以我在 haproxy 中的前端配置看起来像
....
acl is_conclose url_beg /close.php
option httpclose if is_conclose
...
问题:haproxy 总是使用 "option httpclose" 并忽略条件 "if is_conclose"。
如何设置 haproxy 以遵守条件?
option httpclose
既可以在前端也可以在后端指定,对于给定的请求,无论是在前端还是后端,其行为都是一样的。
您是否尝试过为规则结束的后端设置 option httpclose
?
如果可行,我将复制后端(如果需要)并通过新后端路由该规则,然后仅为新后端指定选项 httpclose。
我想为一个请求设置一个特殊的连接模式 (httpclose) url,所以我在 haproxy 中的前端配置看起来像
....
acl is_conclose url_beg /close.php
option httpclose if is_conclose
...
问题:haproxy 总是使用 "option httpclose" 并忽略条件 "if is_conclose"。
如何设置 haproxy 以遵守条件?
option httpclose
既可以在前端也可以在后端指定,对于给定的请求,无论是在前端还是后端,其行为都是一样的。
您是否尝试过为规则结束的后端设置 option httpclose
?
如果可行,我将复制后端(如果需要)并通过新后端路由该规则,然后仅为新后端指定选项 httpclose。