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]
}
...
Faruk_AYDIN
Nov 06, 2017Nimbostratus
There are two ways :
1- Add a few lines into your iRule to reponse to all request of all parts of the Maintenance Page. Like This:switch -glob [string tolower [HTTP::uri]] {
"/css/bootstrap.min.css" {HTTP::respond 200 content [ifile get bootstrap-css]}
"/css/f5.min.css" {HTTP::respond 200 content [ifile get f5-css]}
"images/product_grey.png" {HTTP::respond 200 content [file get product-image]}
}
2- Add all parts of the Maintenance Page into the page. In other words, combine all parts, copy and paste content of your css files into your Maintenance Page header, and convert your image base64(online converter is here) and paste it into your page.
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