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 explains the work going on. I can not get a simple redirect test to work however. Are there any flaws in this code.
when LB_FAILED {
HTTP::redirect "http://www.google.com"
}
Thanks!
2 Replies
Sort By
- Nicolas_Menant
Employee
Hi,when HTTP_REQUEST { if {[active_members pool1] == 0 } { HTTP::redirect "http://www.google.com" } }
when LB_FAILED { log local0. "LB failed triggered" HTTP::redirect "http://www.google.com" }
- cmautner_16848
Nimbostratus
It works! Thanks!
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