on-internet
← Community

How to route HAProxy by subdomain?

Stack Overflow ·

I see many examples using path begin or end and they only seem to be concerned with /whatever is in here/ , and for http. For the situation of HTTP or TCP requests:- EG., host1.cluster1.domain:9178 -> backend9178.cluster1.domain:9178 host2.cluster1.domain:9178 -> backend9178.cluster1.domain:9178 host1.cluster2.domain:9178 -> backend9178.cluster2.domain:9178 host2.cluster2.domain:9178 -> backend9178.cluster2.domain:9178 ... hostx.clusterx.domain:9178 -> backend9178.clusterx.domain:9178 Is it possible to use something like (pseudo)? if source is cluster 1 route to backend9178 on cluster1 if sour

Comments

Sign in or sign up to comment and upvote.

No comments yet.