Hello,
 I have a question about rewriting URLs with HAProxy. I'm aware this
isn't the correct place to do it, but due to a long story essentially
it has to be. What I would like to do is rewrite URLs going to the
webserver like this --

www.test.com/xyz/ -> xyz.test.com/xyz/

This is complicated (as far as I can tell) for a few reasons. Firstly,
I need to pickup the "xyz", then secondly I need to rewrite the domain
with it even though it's part of the path. The problem is that I can't
use (again afaik) something like reqrep because by replacing Host: I
can easily change www to xyz but I cannot pickup xyz as it's not in
the Host header (it's part of the url).

Basically I need to match the path, and use that to replace www in the host..

Any ideas?

Thank you
Dave

Reply via email to