I am trying to use haproxy as a transparent reverse proxy. I have ~50 sites where I would like to forward.
The request is structured as follow a.com/website1/query, where a.com points to the haproxy server.
Once when the request is received the haproxy will transparently forward to website1/query.
I can apply ACLs with regex matching, but if I have website1,website2,website3,website4… I will need to have too many ACLs. My goal is to use the first part of the web request as a variable that could be used in the backend section.
Is this possible ?