mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 23:56:57 +02: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
@ -6655,7 +6655,8 @@ redirect scheme <sch> [code <code>] <option> [{if | unless} <condition>]
|
|||||||
|
|
||||||
Example: append 'www.' prefix in front of all hosts not having it
|
Example: append 'www.' prefix in front of all hosts not having it
|
||||||
http-request redirect code 301 location \
|
http-request redirect code 301 location \
|
||||||
www.%[hdr(host)]%[capture.req.uri] unless { hdr_beg(host) -i www }
|
http://www.%[hdr(host)]%[capture.req.uri] \
|
||||||
|
unless { hdr_beg(host) -i www }
|
||||||
|
|
||||||
See section 7 about ACL usage.
|
See section 7 about ACL usage.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user