Changing Servers - Redirect to new IP = No Downtime?
Posted
by
Denis Pshenov
on Server Fault
See other posts from Server Fault
or by Denis Pshenov
Published on 2012-03-21T06:37:24Z
Indexed on
2012/03/21
11:32 UTC
Read the original article
Hit count: 348
I am changing servers of my website. The IP of old server cannot be moved to the new one. To have no downtime I am planing to do the following, please someone confirm it will work:
- Setup the new server and listen on the new IP
- Old server redirect all traffic to the new IP
- Change DNS records to point to the new IP
My logic tells me that when I redirect to the new IP from my old box, the user will not see the domain name in the browser but will see the new IP. Is there a way to redirect to the new IP and send along the HOSTNAME with it so that the user will see the domain name in the browser?
Im doing this because the site is in constant use and simply changing DNS settings won't do as database won't be synced between the new and old servers during propagation.
© Server Fault or respective owner