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, looks like it can be done by converting the image file to base64 format and placing this encoded string into a iRule group and then access it using an iRule.
I have successfully decoded the base64 string back to the image file using a tool just to verify that the base64 string is valid.
Here is how my iRule looks to test out the image file on the browser.
when HTTP_REQUEST {
HTTP::respond 200 content [b64decode [lindex $::Test_Lab_Splash_Page_Group 0]] "Content-Type" "image/png"
}
Following is the error that I see in the log file.
01220001:3: TCL error: Test_Lab_Splash_Page - conversion error invoked from within "b64decode [lindex $::Test_Lab_Splash_Page_Group 0]"