]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: typo: req.uri is now replaced by capture.req.uri
authorBaptiste Assmann <bedis9@gmail.com>
Sun, 6 Mar 2016 22:42:52 +0000 (23:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Mar 2016 15:13:44 +0000 (17:13 +0200)
A configuration example was not updated after the switch from req.uri to
capture.req.uri.

backport: 1.5 and above

doc/configuration.txt

index b671f05d84f706b813223a5a6ad911202f27e107..d882b05403c523a274f538ed32504d7344f446db 100644 (file)
@@ -6654,8 +6654,8 @@ 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)]%[req.uri] \
-          unless { hdr_beg(host) -i www }
+        http-request redirect code 301 location \
+          www.%[hdr(host)]%[capture.req.uri] unless { hdr_beg(host) -i www }
 
   See section 7 about ACL usage.