Forum Discussion
Kraig_52305
Nov 14, 2012Nimbostratus
Simple 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
Nov 15, 2012Altostratus
I 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
}
}
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