Forum Discussion
Geron_149833
Nimbostratus
Sep 15, 2014LTM Maintenance page
Hello everyone. Newbie here wanting more info on iRules and Maintenace Pages. I have my maintenance page working for whenever I go to site.inside.local, but when I try to get any other page to redire...
What_Lies_Bene1
Cirrostratus
Sep 15, 2014I think a third switch case is required to cover everything else;
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1} {
switch [string tolower [HTTP::uri]] {
"/" {
HTTP::respond 200 content [ifile get maint_html] "Content-Type" "text/html"
}
"/logo.jpg" {
HTTP::respond 200 content [ifile get logo_jpg] "Content-Type" "image/jpeg"
}
default {
HTTP::respond 200 content [ifile get maint_html] "Content-Type" "text/html"
}
}
}
}
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