Forum Discussion
Maintenance page iRule
Find out that adding extra lines with the path and the image makes the uri show the images on the path too.
http://abc.com
http://abc.com/xyz
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
switch -glob [HTTP::uri] {
"/logo.png" {HTTP::respond 200 content [ifile get "logo"]}
"xyz/logo.png" {HTTP::respond 200 content [ifile get "logo"]}
default { HTTP::respond 200 content [ifile get index] noserver "Content-Type" "text/html" "Cache-Control" "no-cache, must-revalidate" }
}
}
}
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