I got a problem related to the Apache server. In this case I'm still doing on virtual machine which is VirtualBox. I'm using Bridged Networking on every virtual machine.
Let say I have 3 different machine act as a server (server A,B and C) and other virtual machine as a client. Server A is the primary server now and serve the foo.com site. But another server (B and C) still haven't up yet (act as a backup server). My question is, how to acomplish if server A turned down and change it to server B or C with the same IP address which is foo.com?. So the site still can up and running to serve to the client.
I hope you guys are clear about my question, and I hope everyone can share opinion about my problem.
The manual way to do this would be to:
- Use IP aliases on the servers for the website IP addresses. This way you can log into server A, B or C using a unique versus a shared IP address.
- Only have one of the servers withe the website IP address active at a time
- Sync the the IP address, webserver configurations between the servers.
- Manually activate the IP address of the standby server when the primary server fails
The automatic way to do it would be to use something like Linux HA http://www.linux-ha.org/