Redirection subdirectory


Good afternoon people!

I need to do an echelon with two servers with haproxy.

I need a domain to work on one backend server and when they enter the same domain will work on another server pointing to another backend.



I separated the servers everything that is / subdirectory it open taking the folder of the server 02, opening normal domain opens by the server 01.

I am using haproxy 1.5


Checkout this post for a broad idea:

Details about single configuration keywords can be found in the manual: