Forum Discussion
SL
Nov 06, 2017Cirrus
Maintenance page referencing css and png content
Hi All
I have the following iRule, that calls a html page
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 } {
HTTP::respond 200 content [ifile get F5-test3]
}
...
P_K
Nov 06, 2017Altostratus
May be you could try something like this..
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/" { HTTP::respond 200 content [ifile get "maintenance.html"] noserver "Content-Type" "text/html" "Cache-Control" "no-cache, must-revalidate" }
"/images/logo.png" { HTTP::respond 200 content [ifile get "logo"] }
"/images/maintenance.png" { HTTP::respond 200 content [ifile get "maintenance"] }
"/css/page.css" { HTTP::respond 200 content [ifile get "page.css"] noserver "Content-Type" "text/css" "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