I have a horribly written application and am trying to work around that limitation.
I’m having a hard time figuring out how to do this. I’ve actually done it before so know it’s possible but that was some time ago. I have HAProxy installed and it’s doing transparent balancing to three backend servers. The problem is that it’s doing it transparently and I actually need it to just redirect. Doesn’t even need to proxy the connections necessarily.
Request is for http://188.8.131.52/this/url.asp (this is HAPRoxy host)
Redirect should be to one of my backend servers 184.108.40.206/this/url.asp or 220.127.116.11/this/url.asp
The way it’s working now is that it’s proxying to 18.104.22.168 but leaving the URL as 22.214.171.124. I need the URL to be 126.96.36.199.
There’s a lot of good information about how to change the URI, but I can’t figure out how to have HAProxy substitute the frontend url for the back end IP.