I need a load balancer that redirects all incoming traffic to a particular hostname (the backend service requires this).
In general I would usually have a rule in the frontend
frontend blah
…
redirect prefix http://mydomain.com code 301 if ! { hdr(host) -i http://mydomain.com }
However, I having trouble getting this configured. Any suggestions?
Thanks,
K