Re: Use regex for backend selection

2016-06-22 Thread Igor Cicimov
use_backend %[req.hdr(host),lower] On Thu, Jun 23, 2016 at 6:21 AM, Mildis wrote: > Hi, > > I’m in the process of setting HAProxy as an HTTPS frontend switch to > different backends. > As I have 10+ different backends, I’d like to replace > > acl to-server1 hdr_beg(host) -i

Use regex for backend selection

2016-06-22 Thread Mildis
Hi, I’m in the process of setting HAProxy as an HTTPS frontend switch to different backends. As I have 10+ different backends, I’d like to replace acl to-server1 hdr_beg(host) -i server1.domain.tld acl to-server2 hdr_beg(host) -i server2.domain.tld … acl to-serverN hdr_beg(host) -i