2905 regex redirects with domain
Compare changes
+ 8
− 0
@@ -90,9 +90,13 @@ frontend http_in
http-request redirect code 301 location {{ redirect.protocol|default('https') }}://{{redirect.to|default(from)}}{{ path.to|default('') }}%[capture.req.uri,regsub({{path.regex}},)] if !letsencrypt_challenge { {{ (from == ".") | ternary('hdr_sub', 'hdr') }}(host) -i -n {{ from }} } { {{path.exact|default(false)|ternary('path /','path_reg ^/')}}{{path.from}} }
@@ -235,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}} }