Forum Discussion
iRule help
Hi
You could either send your clients a redirect back to /apology (or some other) or you just need to change your logic slightly so that you are not looking for an absolute path. Something like this might work
when HTTP_REQUEST {
if {[active_members [LB::server pool]] < 1} {
if { [HTTP::uri] eq "/apology_pic"} {
HTTP::respond 200 content [ifile get "apology_pic"] }
else {
HTTP::respond 200 content [ifile get "apology"] }
}
}
So with this code you are checking for pool availability first, if the pool is down and the call is for /apology_pic then the iRule will serve the iFile, otherwise the holding page iFile gets served. This way the uri doesn't change in the browser and so if someone refreshes and your pool becomes available again then they should be able to carry on browsing
Recent Discussions
Related Content
* 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