Forum Discussion
different Irule behaviour for HTTP_REQUEST vs LB_FAILED
Thanks Michael J, definitely this is some sort of bug but it does not work with the workarounds suggested
Finally landed up using advice from this link: https://devcentral.f5.com/questions/how-to-create-irule-to-deliver-an-alternate-page-response-other-than-page-unavailable
i.e. when HTTP_REQUEST { if {[active_members [LB::server pool]] < 1} { switch [HTTP::uri] { "/guardian_header.jpg" { HTTP::respond 200 content [ifile get "guardian_header_jpg"] } "/guardian_logo.jpg" { HTTP::respond 200 content [ifile get "guardian_logo_jpg"] } default { HTTP::respond 200 content [ifile get "maint_index_html"] } } } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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