]> git.kaiwu.me - haproxy.git/commit
MEDIUM: proxy: remove http-errors limitation for dynamic backends
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 18 Mar 2026 15:22:11 +0000 (16:22 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 23 Mar 2026 10:14:07 +0000 (11:14 +0100)
commitc6fc53aa9999c7336f18df5d32acb49ee2f6171a
tree7cf5b605699e6ec3a07a6dc397878e3fcc4b8b4b
parent2ca7601c2d6781f455cf205e4f3b52f5beb16e41
MEDIUM: proxy: remove http-errors limitation for dynamic backends

Use proxy_check_http_errors() on defaults proxy instances. This will
emit alert messages for errorfiles directives referencing a non-existing
http-errors section, or a warning if an explicitely listed status code
is not present in the target section.

This is a small behavior changes, as previouly this was only performed
for regular proxies. Thus, errorfile/errorfiles directives in an unused
defaults were never checked.

This may prevent startup of haproxy with a configuration file previously
considered as valid. However, this change is considered as necessary to
be able to use http-errors with dynamic backends. Any invalid defaults
will be detected on startup, rather than having to discover it at
runtime via "add backend" invokation.

Thus, any restriction on http-errors usage is now lifted for the
creation of dynamic backends.
doc/management.txt
src/cfgparse.c
src/proxy.c