Forum Discussion
5 Replies
Sort By
- hooleylistCirrostratusHello,
- Wil_Schultz_101NimbostratusHere'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_67NimbostratusAaron, wschultz,
- Dave_20275NimbostratusThis 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.