From: Thierry FOURNIER Date: Fri, 29 Nov 2013 11:15:45 +0000 (+0100) Subject: MEDIUM: http: The redirect strings follows the log format rules. X-Git-Tag: v1.5-dev20~176 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d18cd0f1106c923916036d69ebc0dc553b1fcff8;p=thirdparty%2Fhaproxy.git MEDIUM: http: The redirect strings follows the log format rules. We handle "http-request redirect" with a log-format string now, but we leave "redirect" unaffected. Note that the control of the special "/" case is move from the runtime execution to the configuration parsing. If the format rule list is empty, the build_logline() function does nothing. --- diff --git a/doc/configuration.txt b/doc/configuration.txt index b2ef7e349b..803d42edcf 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -2768,7 +2768,8 @@ http-request { allow | deny | tarpit | auth [realm ] | redirect | - "redirect" : this performs an HTTP redirection based on a redirect rule. This is exactly the same as the "redirect" statement except that it inserts a redirect rule which can be processed in the middle of other - "http-request" rules. See the "redirect" keyword for the rule's syntax. + "http-request" rules and that these rules use the "log-format" strings. + See the "redirect" keyword for the rule's syntax. - "add-header" appends an HTTP header field whose name is specified in and whose value is defined by which follows the log-format @@ -4709,14 +4710,19 @@ redirect scheme [code ]