Hi,
Our application makes internal calls to multiple domains and subdomains. The domain names are resolved ( from /etc/hosts file within application servers) by multiple load balancer IPs. I have around 500 websites resolved to different LB IPs with a different backend for each ip. I want to route the request to different backend based on the destination ip ( LB ip) but my requests from the application servers would be to the domains/subdomains.
I can route the traffic based on the domain like below.
frontend https-in
acl host_1 hdr(host) -i www.domain1.net
acl host_2 hdr(host) -i www.domain2.net
use_backend worker_1 if host_1
use_backend worker_2 if host_2
But this way, I have to write 1000 of ACLs as per my current requirement. Is there an option to route based on the destination ip? or any other feature that helps to achieve this as simple as possible?
Thanks in Advance,
Nagaraj