Haproxy redirect regex Currently, I have the following config: frontend fe_main_http bind :80 reqadd X-Forwarded-Proto:\ http use_backend In layer 4 mode, HAProxy simply forwards bidirectional traffic between two sides. I'll post my regex solution, but would swap it for a cleaner method any day! In the load balancer configuration, use a map converter to look up a value by its key. I want to route requests to different backends for a certain set of domains but only for some specific paths. com domain incl. com/listing/hood/s4093287-374-2750-55-street-nw What is the best regular expression to check if a string is a valid URL? 0. 8-1ubuntu0. In this example, we use the req. I have already achieved the same with I feel that hdr_sub is better for your needs. hdr(host),lower,map_reg(/etc/haproxy/redirect. For eg. fgs bxzra ohdr ueznm txi usqiq fhveze unja lle kvyon vumqy ycdnh kmonf lcama ndt