Forum Discussion
JJ_47859
Nimbostratus
Oct 03, 2007setting up a maintenance page using LB_FAILED
Hello DevCentral,
I've trying to create a maintenance page that will be displayed if our web servers go offline or if we take them down for maintenace. I was testing with LB_FAILED using th...
Colin_Walker_12
Oct 03, 2007Historic F5 Account
The problem is due to the fact that you don't want to use LB_FAILED for this. You want something in the HTTP_REQUEST section that checks the number of active pool members.
LB_FAILED only fires if load balancing fails (I.E. no members available, no fallback entry, etc. etc.). You can read more about it here: Click here
Try something like:
when HTTP_REQUEST {
if {[active_members myHTTPPool] < 1 } {
HTTP::redirect "http://www.yahoo.com"
}
}HTH,
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects