]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: fix discrepancy in the example for http-request redirect
authorCoen Rosdorff <coen.rosdorff@sentia.com>
Mon, 11 Apr 2016 09:33:49 +0000 (11:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Apr 2016 09:26:22 +0000 (11:26 +0200)
Commit c8f0e78 ("DOC: typo: req.uri is now replaced by capture.req.uri")
fixed a discrepancy in the doc but the scheme is still missing, resulting
in a redirect loop. Let's fix this as well. This should be backported to
1.5.

doc/configuration.txt

index 9798f32ca93f1a3cb49b668ecf737f74cbcacc4c..ce81183fd7aff674bea534d9190cfbc9783ce26c 100644 (file)
@@ -6654,8 +6654,9 @@ redirect scheme   <sch> [code <code>] <option> [{if | unless} <condition>]
         redirect scheme https if !{ ssl_fc }
 
   Example: append 'www.' prefix in front of all hosts not having it
-        http-request redirect code 301 location \
-          www.%[hdr(host)]%[capture.req.uri] unless { hdr_beg(host) -i www }
+        http-request redirect code 301 location      \
+          http://www.%[hdr(host)]%[capture.req.uri]  \
+          unless { hdr_beg(host) -i www }
 
   See section 7 about ACL usage.