Using two machines to host 1 site

Hello, I was wondering if somebody could help me accomplish this. I am using a CentOS server, installed Webmin/Virtualmin to run a website, everything's fabulous. I decided to add a second server to the equation for DNS, redundancy and fail-over, etc.

How do I include the second server into this? (I already set NS2.mydomain.com to the second server's IP at the registrar) Do I have to install everything on the second server as well? What other steps are included?

Please advise.

Thanks.

Status: 
Active

Comments

Howdy -- you may want to take a peek at this document for steps in setting up a secondary DNS server:

https://www.virtualmin.com/documentation/dns/slave-configuration

And this for setting up a backup mail server:

https://www.virtualmin.com/documentation/email/hold-and-forward

Also, if you want backups of all your websites, user accounts, and the like -- you can generate backups on your main server, and restore those on a Virtualmin instance on your backup server. That could all be scripted using the command line tools:

https://www.virtualmin.com/documentation/developer/cli/backup_and_restore/

Remember though that the support tracker here is for Virtualmin Pro customers... if you're using Virtualmin GPL, you'll want to use the forums for support. Thanks!

A little addition from my end:

For synchronizing the web site contents, it'd probably be more feasible to set up rsync jobs for the files, and MySQL Replication for the database contents.