I'm setting up a few services which will reside behind a single IP (ie NAT). Some of these services will use the same port. For example, say I would host two different web sites on different servers WebA and WebB. To an external visitor, I want both to use port 80. Determining what server should answer the request should be done by inspecting the url, say that I have weba.example.com
and webb.example.com
, they should be served from the appropriate server.
At work I know that we do this using F5 loadbalancers and build rules called "iRules". That is massively overkill for my scenario though. What available tools are there to accomplish this? I looked into Zen Loadbalancer since I figured it would be something all loadbalancers do, but it seems not.