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
--
Cyril Bonté