Haproxy sending request to wrong backend

Hello,

Rules order is important.

Here you have this rule juste before :

acl url_app14 path -i -m beg /quote
use_backend procli if url_app14

GET /quotes-gateway-rest-api match this rule and is redirected to the wrong backend. Insert the more precise rule first, and it should be OK :

acl url_app16 path -i -m beg /quotes-gateway-rest-api
use_backend appc2 if url_app16
acl url_app14 path -i -m beg /quote
use_backend procli if url_app14

1 Like