Forum Discussion
Bhanu_9561
Jul 17, 2014Cirrus
LTM V10.2 - Splash Page image file
Hi folks!
I have a requirement where the BIG-IP LTM has to present the user with a splash page (image file) when all of their servers are offline. Base on some previous dev central threads, look...
Stefan_Klotz
Jul 23, 2014Cumulonimbus
Hi Bhanu,
you are on the right way. I also played with similar requirements in the past, but I always put in the base64 string directly into the iRule. Something like this:
when HTTP_REQUEST {
if { [active_members ] < 1 } {
switch [string tolower [HTTP::uri]] {
"/maintenance/logo.gif" {
HTTP::respond 200 content [b64decode ""] "Content-Type" "image/gif"
}
"/maintenance/index.html" {
HTTP::respond 200 content ""
}
default {
HTTP::redirect "http://[HTTP::host]/maintenance/index.html"
}
}
} elseif { [string tolower [HTTP::uri]] eq "/maintenance/index.html" } {
HTTP::redirect "http://[HTTP::host]"
}
}
Please give it a try this way.
btw. I'm using this URL to base64 encode pictures.
Ciao Stefan 🙂
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