URL rewriting via forward proxy
- by Biggroover
I have an app that runs inside my firewall and talks out to multiple end points via HTTP/HTTPS on a non-standard port e.g. http://endpoint1.domain.com:7171, http://endpoint2.domain.com:7171
What I want to do is route these requests through a forward proxy that then rewrites the URL to something like http://allendpoints.domain.com/endpoint1 (port 80 or 443) then on the other end have a reverse proxy that unwinds what I did on the forward proxy to reach the specific endpoints.
The result being that I can route existing app requests through to specific endpoints across the internet without having to change my app software.
My questions are:
is this even possible?
is it a good idea, are their better ways to do this?
Can this be done with IIS and Apache as the proxies?