mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 08:20:19 -05:00
DOC: typo: req.uri is now replaced by capture.req.uri
A configuration example was not updated after the switch from req.uri to capture.req.uri. backport: 1.5 and above
This commit is contained in:
parent
66025d856c
commit
c8f0e78b25
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue