2905 regex redirects with domain
Compare changes
- Eric Zillmann authored
ansible-inventories/arocom#2905 SSL part: added non-mandatory parameter to use domains for compatibility as well
+ 4
− 0
@@ -239,9 +239,13 @@ frontend https_in_{{ cert.ip }}
http-request redirect code 301 location {{ redirect.protocol|default('https') }}://{{redirect.to|default(from)}}{{ path.to|default('') }}%[capture.req.uri,regsub({{path.regex}},)] if { {{ (from == ".") | ternary('hdr_sub', 'hdr') }}(host) -i -n {{ from }} } { {{path.exact|default(false)|ternary('path /','path_reg ^/')}}{{path.from}} }