Hey guys,
I would like to set up HAProxy to forward HTTP requests to several backend 
servers but I need it to also rewrite the URI part based on the Host header. 
I've read through the doc but it seems that reqirep isn't suitable for this 
purpose. Any idea if this is even possible with HAProxy? If it's not possible 
using the current code can you offer any suggestions about how a code patch 
could be developed to achieve this?
What I'd like to set up would be to have HAProxy rewrite a request like this:

GET /original-uri HTTP/1.1
Host: original-domain.tld

to:

GET /domains/original-domain.tld/original-uri HTTP/1.1
Host: serverN

and forward that request to one of the internal servers. 

Thanks you,
    Dorin

Reply via email to