|
|
|
|
Server Migration OK, so not really server migration, but a bunch of things that have previously helped in server migration projects. Migrating ApacheProblem: We want to move our services to a new server, but the old server still has to be there for other virtual hosts. We could just remove the virtual host from the server and hope that all the visitors find the new server, but DNS can take a while to propagate around the world, so we don't want to run into the situation where some visitors hit a broken link. Solution: The solution requires playing around with the DNS and some apache configuration. For example, let's consider moving www.labyrinth-it.co.uk from the existing server to a new server. Once the new server has been set up and configured with all the correct data, we need to bring it to production. The procedure that has worked is:
At this point (hopefully) most requests will be directed directly to the new server. Any requests that find the wrong IP address because the DNS has been cached somewhere will hit the old server, but instead of being served pages from the old server, they will be redirected to the new server via its alternate DNS name. You can now monitor the logs on the old system, and when no more requests are seen on that box, the VirtualHost configuration can be dropped. |
|
|
|
|