]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-errorfiles: test the errorloc directives
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2026 20:40:32 +0000 (20:40 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 14:55:57 +0000 (16:55 +0200)
commite79a2f9b22e381a511330ba65efbe78403741185
treef57988d8d4933f2bfc099324fef895d7d7fea8c4
parentac773f99ef25ab0079ef0ef73fbcbed33217ef93
REGTESTS: http-errorfiles: test the errorloc directives

The errorloc, errorloc302 and errorloc303 directives had no coverage
while errorfile and http-error do. The test checks the three forms on a
503 caused by an unreachable server and on a 403 returned by a deny
rule, verifies that "errorloc" is an alias for "errorloc302", that a
relative location is accepted, and that a status code for which no
errorloc was declared still gets the default error page.
reg-tests/http-errorfiles/errorloc.vtc [new file with mode: 0644]