Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay not sure how to proceed on this one. I currently host 2 websites off the server at my house. One is an online store i host for a friend. I would like to be able to build another fedora box to act as a backup. Both would be behind my linksys router which passes port 80 requests to the first one already. Is there a solution that if the main server went down that the backup server would automatically start handling the port 80 requests.
I have some thoughts of writing a php script on the backup server that would check some text off a home page on the other server. If say after 3 checks it couldn't recieve the page, it would issue the shell command to start it's httpd service and try to issue the same command to the main server to shut its down. This way just in case the backup server was wrong, both will not be operating as the web server. then the script would issue an email or text message to me to let me know the switch happened. The only unknown is can you have a linksys router send port 80 requests to more than one box. (I will check this tonight).
I would love the challenge, but if there is already a open source software or another method to make this happen...I would love the time savings.
I'll give it a try. Just so I'm clear, I checked their site and it appears that it creates a cluster. In a simple passive/active case, the heartbeat software monitors the services I choose to, in this case apache, and in the event it is unhappy with the results of the test, it shuts down apache, and then releases the ip on the first server and gives it to the backup serverso the router never notices a difference and then starts the backups apache. So I presume originally you set the backup server another IP and if the switch occurs, the IP will be changed and the first presumed dead.
Also can you have it run additional scripts when it does the switch, say an email script to let me know the switch occured
well that site contains information about a large range of different HA techniques and implementations, but essentially you just want a failover IP address.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.