SL
Jan 18, 2018Cirrus
Maintenance 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 ...
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" }
}
}
}