Hi,
We have quite a large number of backends, and are selecting which back end
to use based on the host specified in the request. (Note these are not
loadbalanced, we have to target them individually).
Currently we are doing this with ACLs, e.g. for each:
acl svr1_request hdr_beg(host) -i svr1
then:
use_backend svr1 if svr1_request
(An example request host in this case would be svr1.example.com)
Using ACLs like this means that we have a large number of repeated ACLs and
use_backends. It's a bit cumbersome, difficult to maintain, and I suspect
not very efficient.
Is there a better way to do this? What would be ideal, is some way to take
the subdomain of the request host, and simply select a backend whose name
matched, but I don't know of any way to do that. Is such a thing possible?
Thank you
S
We have quite a large number of backends, and are selecting which back end
to use based on the host specified in the request. (Note these are not
loadbalanced, we have to target them individually).
Currently we are doing this with ACLs, e.g. for each:
acl svr1_request hdr_beg(host) -i svr1
then:
use_backend svr1 if svr1_request
(An example request host in this case would be svr1.example.com)
Using ACLs like this means that we have a large number of repeated ACLs and
use_backends. It's a bit cumbersome, difficult to maintain, and I suspect
not very efficient.
Is there a better way to do this? What would be ideal, is some way to take
the subdomain of the request host, and simply select a backend whose name
matched, but I don't know of any way to do that. Is such a thing possible?
Thank you
S