Hi,
I would like to add conditional https rewrite to my configuration.
Is there a way to “reconcile” these two things ?
acl acl_tst hdr(host) test-site.domain.com
http-request add-header X-Forwarded-Proto https if { ssl_fc }
WORKING
http-request redirect scheme https if !{ hdr(Host) -i test-site.domain.com } !{ ssl_fc }
#SYNTAX ERROR
http-request redirect scheme https if !{ acl_tst } !{ ssl_fc }
I would like to declare the ACL once and use it everywhere, but is it only possible ?
Regards
1 post - 1 participant