mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-19 12:10:46 +00:00
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:
parent
64a16ab19c
commit
596659b023
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user