DOC: fix discrepancy in the example for http-request redirect

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.
This commit is contained in:
Coen Rosdorff 2016-04-11 11:33:49 +02:00 committed by Willy Tarreau
parent 64a16ab19c
commit 596659b023

View 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.