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.
diff --git a/doc/configuration.txt b/doc/configuration.txt
index 9798f32..ce81183 100644
--- a/doc/configuration.txt
+++ b/doc/configuration.txt
@@ -6654,8 +6654,9 @@
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.