Forum Discussion
Ed_Ferrageau_67
Nimbostratus
Feb 01, 2008Redirect when all poolmembers are down
Hi,
I'm trying to figure out how I can redirect a request to an "external" errorpage, when all poolmembers are down. I have no experience with iRules, so any help is more than welcome.
Thank...
Dave_20275
Nimbostratus
Apr 08, 2008This also works to if you have no suitable external site to redirect to. I simply have the BIGIP do a content subsitution with the HTML contained in the pool_error string.
when HTTP_REQUEST {
}when RULE_INIT {
set pool_error {
No Servers Available are in the Requested Virtual Server's Pool
INSERT YOUR HTML HERE!!!
}
}
when HTTP_REQUEST {
if {[active_members your_pool_here ] < 1 } {
HTTP::respond 200 content [subst $::pool_error]
}
}
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
