I have 5 servers with apache and one dns round robin to distribute de users, but some times servers crash because the big trafic, and I need configure a fail whale page before the crash. How I can do that? Do you kow if exists any apache or tux config to do that?
migrated from stackoverflow.com Jul 31 '11 at 16:05
This question came from our site for professional and enthusiast programmers.
No, you can't configure Apache to serve a failure page after it crashes, because, well, it just crashed. If it could serve a failure page, then it could serve content.
What you have to do is have a system separate from that of the failed one take over and serve the failure page -- but then, if you've got a redundant infrastructure like this, then you can just serve the actual service instead.
There are a couple of times that failure pages are useful:
So, the short answer to your question is "buy more hardware and get someone who knows what they're doing to set it up for you".