mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
DOC: configuration.txt: do-resolve must use host_only to remove its port.
The do-resolve action does not support a port in its parameter string, the host_only converter must be used. Must be backported to 2.6.
This commit is contained in:
parent
d78dfe7891
commit
b5c2cd461d
@ -6595,7 +6595,7 @@ http-request do-resolve(<var>,<resolvers>,[ipv4,ipv6]) <expr>
|
||||
|
||||
frontend fe
|
||||
bind 10.42.0.1:80
|
||||
http-request do-resolve(txn.myip,mydns,ipv4) hdr(Host),lower,regsub(:[0-9]*$,)
|
||||
http-request do-resolve(txn.myip,mydns,ipv4) hdr(Host),host_only
|
||||
http-request capture var(txn.myip) len 40
|
||||
|
||||
# return 503 when the variable is not set,
|
||||
|
Loading…
x
Reference in New Issue
Block a user