Forum Discussion
Andy_Sutton
Nimbostratus
May 18, 2007irule when pool members are down
I'm trying to setup a basic irule to redirect to an alternate website when my pool members are down for a give virtual. I've found some other posts that yield the code to do this such as:
w...
Andy_Sutton
Nimbostratus
May 18, 2007Nevermind I found the trick
Here is my iRule
when LB_FAILED {
if { [active_members [LB::server pool]] != 0 } {
} else {
HTTP::fallback "HTTP://my.sitedown.com/index.asp?site=[HTTP::host]"
}
}
On the backside I have an ASP page that interprets the HTTP::host and displays it along with a pretty graphic and a nice message.
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