]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: proxy: Add a directive to reference an http-errors section in a proxy
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 13 Jan 2020 14:52:01 +0000 (15:52 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:46 +0000 (15:18 +0100)
commit76edc0f29c944f3dc721fb7655242a1bf98f835d
tree8bfe04e9d5c42ee7bd254f3851752487ff3c2951
parent35cd81d363f0ba7947d78ccaae0f54b0e74fcf23
MEDIUM: proxy: Add a directive to reference an http-errors section in a proxy

It is now possible to import in a proxy, fully or partially, error files
declared in an http-errors section. It may be done using the "errorfiles"
directive, followed by a name and optionally a list of status code. If there is
no status code specified, all error files of the http-errors section are
imported. Otherwise, only error files associated to the listed status code are
imported. For instance :

  http-errors my-errors
      errorfile 400 ...
      errorfile 403 ...
      errorfile 404 ...

  frontend frt
      errorfiles my-errors 403 404  # ==> error 400 not imported
doc/configuration.txt
include/proto/http_htx.h
include/types/proxy.h
src/cfgparse-listen.c
src/http_htx.c
src/proxy.c