Configure haproxy/keepalive to use name in uri

I’m a begginer with haproxy/keepalived.

I got a basic configuration with two server app and two loadbalancer with haproxy and keepalived.

In app servers I have app as hostname:port.
In loadbalancer access as loadbalancer:port
But I need to identify the endpoint with a name, then I need to access as: loadbalancer:port/myapp
And if I access as: loadbalancer:port then nothing or error or a redirection.

How can I perform this task?

Regards

Hi.
Look at this: https://cbonte.github.io/haproxy-dconv/1.5/configuration.html#7.1
This: https://cbonte.github.io/haproxy-dconv/1.5/configuration.html#path
And this: [link at the next post. restriction for a new users]

So you can send traffic at the specific backend if it match specific path at the ACL.
Best Regards.

Last link: https://cbonte.github.io/haproxy-dconv/1.5/configuration.html#4-use_backend

Best Regards.