Load-balancer: how to serve multiple services with same host & port

How should I configure the load balancer in order to use the same Request Host and port to dispatch to different services based on path.

For example:

I tried to set Path to /service1 but it did not work :frowning:

Thanks for your help!

That configuration seems like it should work to forward requests to a different service. The trick for me to get it to work was the path had to be a valid URL on the service it was forwarding to. So when your path is /service1, /service1 MUST be a valid endpoint on the service1 container.
If you need to strip that path off and just connect to the service you will probably have to use a ‘Custom haproxy.cfg’.

Mark