From: Willy Tarreau Date: Sun, 26 Jun 2016 17:37:59 +0000 (+0200) Subject: DOC: add missing doc for http-request deny [deny_status ] X-Git-Tag: v1.7-dev4~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be1d34ded235a8146c84ec44807e663348619c1f;p=thirdparty%2Fhaproxy.git DOC: add missing doc for http-request deny [deny_status ] The feature was introduced in 1.6-dev2 by commit 108b1dd ("MEDIUM: http: configurable http result codes for http-request deny") but the doc was missing. Thanks to Cyril for noticing. This must be backported into 1.6. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index 45e2e06d73..1a96edb657 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -3512,7 +3512,8 @@ http-check send-state See also : "option httpchk", "http-check disable-on-404" -http-request { allow | deny | tarpit | auth [realm ] | redirect | +http-request { allow | tarpit | auth [realm ] | redirect | + deny [deny_status ] | add-header | set-header | capture [ len | id ] | del-header | set-nice | set-log-level | @@ -3547,8 +3548,10 @@ http-request { allow | deny | tarpit | auth [realm ] | redirect | pass the check. No further "http-request" rules are evaluated. - "deny" : this stops the evaluation of the rules and immediately rejects - the request and emits an HTTP 403 error. No further "http-request" rules - are evaluated. + the request and emits an HTTP 403 error, or optionally the status code + specified as an argument to "deny_status". The list of permitted status + codes is limited to those that can be overridden by the "errorfile" + directive. No further "http-request" rules are evaluated. - "tarpit" : this stops the evaluation of the rules and immediately blocks the request without responding for a delay specified by "timeout tarpit"