Forum Discussion
SL
Cirrus
Jan 18, 2018Maintenance page iRule
Hi All
I have created the below iRule for a Maintenance page
The page is loading successfully however. I am however the following issues:
- The maintenance page is rendered even ...
Miguel
Nimbostratus
May 21, 2020Find 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" }
}
}
}
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