We currently have a single web server running Debian/Apache. I need to develop some sort of slave server and failover procedure so that if the existing web server fails, another identical server kicks in.

I've been reading up on this and it seems heartbeat may be the way forward to implement failover. But being a bit of a Linux novice, I'm not entirely sure how to setup a slave/secondary web server!

Any advice would be much appreciated.