]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-htx: Add a new section to create groups of custom HTTP errors
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 15 Jan 2020 10:22:56 +0000 (11:22 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Jan 2020 14:18:46 +0000 (15:18 +0100)
commit35cd81d363f0ba7947d78ccaae0f54b0e74fcf23
treee7605e5167caa9dd1e95908ca5680476f8cea000
parent07f41f79cbbd5717f7bcd1dbc664e772afd113c4
MINOR: http-htx: Add a new section to create groups of custom HTTP errors

A new section may now be declared in the configuration to create global groups
of HTTP errors. These groups are not linked to a proxy and are referenced by
name. The section must be declared using the keyword "http-errors" followed by
the group name. This name must be unique. A list of "errorfile" directives may
be declared in such section. For instance:

    http-errors website-1
        errorfile 400 /path/to/site1/400.http
        errorfile 404 /path/to/site1/404.http

    http-errors website-2
        errorfile 400 /path/to/site2/400.http
        errorfile 404 /path/to/site2/404.http

For now, it is just possible to create "http-errors" sections. There is no
documentation because these groups are not used yet.
include/types/http_htx.h
src/http_htx.c