Forum Discussion
Kraig_52305
Nimbostratus
Nov 14, 2012Simple Nested iRule
I want to combine two actions in this iRule. First I want to see if any members are up and if they are then load balance to pools depending on source IP. If all pool members are down I want to redi...
uni
Altocumulus
Nov 14, 2012I would do it like this (untested). I would not bother with the CLIENT_ACCEPT event:
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
HTTP::redirect "http://mysite.com/sorry_page.html"
return
}
if {[class match [IP::client_addr] equals crawl_ip]} {
pool pool1_crawl
} else {
pool pool2_non_crawl
}
}
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