On Sat, Dec 12, 2015 at 12:57 PM, Cyril Bonté <[email protected]> wrote:
> Hi, > > Le 12/12/2015 21:42, David Birdsong a écrit : > >> This one is pretty simple: >> >> >> ` >> acl a_new_backend hdr_dom(host) -i api.company.com path_beg -i /v3 >> >> use_backend new_backend if a_newbackend >> >> ` >> >> new_backend is getting requests for api.company.com/v2 >> > > You misenderstood the acl syntax. Here, you ask for hdr_dom(Host) to match > "api.company.com" or "path_beg" or "/v3". > > You can try something like : > acl API_HOST hdr_dom(host) -i api.company.com > acl API_V3 path_beg -i /v3 > > use_backend new_backend if API_HOST API_V3 this might be where i picked up the presence of an implicit AND. so acl's are implicit OR use_backend is implicit AND ? > > > > -- > Cyril Bonté >

