Forum Discussion
cmautner_16848
Nimbostratus
Apr 01, 2008LB_Fail Redirect (easy question)
Sorry, kind of new to IRules
We have an LTM, and we often disable servers so we can do maintenance. When no servers are enabled in the pool, we want to redirect them to a webpage which expl...
Nicolas_Menant
Employee
Apr 01, 2008Hi,
try this:
when HTTP_REQUEST {
if {[active_members pool1] == 0 } {
HTTP::redirect "http://www.google.com"
}
}where pool1 is the name of your pool
if you try this:
when LB_FAILED {
log local0. "LB failed triggered"
HTTP::redirect "http://www.google.com"
}you will see in your log file /var/log/ltm that it is never triggered LB failed is not triggered when all pool members are disabledClick here
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