Hi,
I'm currently running a webpage on a dedicated server and now want to implement some as much as possible automatic fallback mechanism. That's what I have:
- Domain- and DNS-configuration at a provider P, here the domains are registered and configured to point to the IP aaa.aaa.aaa.aaa which belongs to my main server
- a dedicated server A (full root access) running Ubuntu 18.04 which owns the IP aaa.aaa.aaa.aaa and serves the webpage by default
- a backup virtual server B (also full root access) running Ubuntu 18.04 which owns an other IP (bbb.bbb.bbb.bbb) and is intended to work as fallback system
What I want to have:
- automatic synchronisation of the webpage contents from aaa.aaa.aaa.aaa to bbb.bbb.bbb.bbb (not a big deal, can be done easily via rsync/cron jobs/automated download and unpacking of .tar.bz-archives/whatever)
- automatic synchronisation of the server configuration (this is somewhat more complicated: in /etc/apache2/apache.conf the IP aaa.aaa.aaa.aaa is configured for the different virtual hosts - but that will not work on server bbb.bbb.bbb.bbb - so is there a possibility to configure Apache2 in a more generic way and without fixed IP's?)
- automatic switching to server B as soon as server A is down or not accessible for any reason (this is the major question: how can this be done when the DNS are configured at provider P, how can one switch the configuration of my domains to no longer point to aaa.aaa.aaa.aaa but to bbb.bbb.bbb.bbb in case of a failure?)
So...any ideas/suggestion how such an automated fallback system could be configured? May be there are already some solutions available so that there is no need to build up something for my own?
Thanks!
Bookmarks