]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: proxy: remove long-broken 'option http_proxy'
authorWilly Tarreau <w@1wt.eu>
Sun, 18 Jul 2021 17:18:56 +0000 (19:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Jul 2021 17:35:32 +0000 (19:35 +0200)
commit252412316e5814a8743c6b22644f5d6ce0cc2a23
tree466560debc586cf9f56e61b4ac4c05328935c83a
parentf1db20c473e1c5bfb20a8613325675d178499f84
MEDIUM: proxy: remove long-broken 'option http_proxy'

This option had always been broken in HTX, which means that the first
breakage appeared in 1.9, that it was broken by default in 2.0 and that
no workaround existed starting with 2.1. The way this option works is
praticularly unfit to the rest of the configuration and to the internal
architecture. It had some uses when it was introduced 14 years ago but
nowadays it's possible to do much better and more reliable using a
set of "http-request set-dst" and "http-request set-uri" rules, which
additionally are compatible with DNS resolution (via do-resolve) and
are not exclusive to normal load balancing. The "option-http_proxy"
example config file was updated to reflect this.

The option is still parsed so that an error message gives hints about
what to look for.
doc/configuration.txt
examples/option-http_proxy.cfg
include/haproxy/proxy-t.h
src/backend.c
src/cfgparse-listen.c
src/cfgparse.c
src/http_ana.c
src/proxy.c