Redirect based on host headers
I am trying to bypass the ISP's 1 IP limit. Here is what I am trying to do. I have two web servers running inside my network. One is my main IIS box running 4 or 5 sites and I just added a Windows home server. I created a dns entry for it called home.mydomain.com and another server responds to www.mydomain.com.
My router is configured to forward 80 to the server www.mydomain.com (192.168.1.3), so when requests arrive at home.mydomain.com the request fails because the WWW server is not configured to listen for that host header.
I would like to know if there is a way from IIS 7 to "proxy" requests to home.mydomain.com (192.168.1.4). I tried to set up HttpRedirect in IIS, but it doesn't work as I would have hoped, as it sends back a 302 to the client with a name that points to the main IP address, and then a loopback redirect occurs.
I am told that in apache this can be done with one proxy to another. Can this be done in IIS 7? If anyone knows of a proxy server proxy that I can use?
Thanks in advance,
Rich
a source to share
What you are looking for is a "reverse proxy". In Apache, you can do this via mod_proxy. On IIS, you'll want to try Application Request Routing .
a source to share
URL Rewrite for IIS can also be used for reverse proxying.
Another Reverse Proxy Package - Managed URL Rewriter and Fusion Reverse Proxy
a source to share