...more code
frontend http-in
bind *:80
acl host_mydomain hdr_beg(host) -i www.mydomain.com
redirect scheme https code 301 if !host_mydomain or !{ ssl_fc }
use_backend mydomain_backend if host_mydomain
...more code
I'm trying to route all traffic to https except if www.mydoamin.com comes in, then it's supposed to use http. I was reading the documentation over at https://www.haproxy.com/doc/aloha/7.0/haproxy/conditions.html#writing-a-condition