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.
Thanks.
Ed
- hoolio
Cirrostratus
Hello, - Wil_Schultz_101
Nimbostratus
Here's one that I use:when HTTP_REQUEST { set mypool [active_members somepool] switch $mypool { "0" { HTTP::redirect "http://www.mydomain.com/maintenance.html" } default { pool mybackup_pool } } }
- Ed_Ferrageau_67
Nimbostratus
Aaron, wschultz, - Dave_20275
Nimbostratus
This 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. - Colin_Walker_12Historic F5 AccountThat's a good point. The HTTP::respond command is extremely powerful in that it allows you to send back custom HTML content directly from the BIG-IP. It also saves you from having to send the client a redirect, which some clients will complain about, depending on their security settings.
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