I am trying to configure IIS to proxy requests based on the incoming hostname. For example, if my proxy server is an IIS server located at www.proxy.com, a request to www.google.com.www.proxy.com would be proxied to www.google.com
I have tried to set up a reverse proxy with a URL rewrite rule to rewrite *localhost*
to {R:1}{R:2}, but I haven't had any luck. From what I have read, it may only be possible if I specify exactly which servers I want to interact with ahead of time, but in my case, this isn't possible (servers are on EC2 and being dynamically created and killed all the time).