Reputation: 1
I want to move some websites from server 1 to server 2.
My clients have A records pointing to the IP address of server 1. Without updating their DNS records, how can I automatically forward request for those domains from server 1 to server 2?
Thanks
Graham
Upvotes: 0
Views: 3295
Reputation: 33538
This image is from an article regarding Exchange, but the IIS settings are relevant.
You can redirect at the HTTP level by specifying a URL redirect in IIS's HTTP Redirect settings:-
However, for this approach to work you will need a new domain for your sites. e.g. if the A record resolves www.example.com
to Server 1
you will need to redirect to another URL (e.g. www.example.edu
) that already resolves to Server 2
.
Another option is to setup a reverse proxy using IIS on Server 1
:
Today there was a question in the IIS.net Forums asking how to expose two different Internet sites from another site making them look like if they were subdirectories in the main site.
So for example the goal was to have a site:
www.site.com
expose awww.site.com/company1
and awww.site.com/company2
and have the content fromwww.company1.com
served for the first one andwww.company2.com
served in the second one
So slightly different requirements (the article only wants a subdirectory rather than the whole site), but the same concept will apply.
Upvotes: 1