Forum Discussion
greenasp_41938
May 02, 2013Nimbostratus
I have tried every combination possible and can get an image to display. I placed the images in the data group list as a string, but the images do not get displayed. However, the rest of the page shows.
when HTTP_REQUEST {
set VSPool [LB::server pool]
if { [active_members $VSPool] < 1 } {
log local0. "Client [IP::client_addr] requested [HTTP::uri] no active nodes available..."
if { [HTTP::uri] ends_with "/logo.png" } {
HTTP::respond 200 content [b64decode [class element -value 0 logo_image_class]] "Content-Type" "image/png"
} else {
if { [HTTP::uri] ends_with "?offlineimage.png" } {
HTTP::respond 200 content [b64decode [class element -value 0 offlineimage_class]] "Content-Type" "image/png"
} else {
HTTP::respond 200 content "
We'll Be Back
The website is offline for scheduled maintenance. We apologize for any inconvenience.
We expect to be online shortly. Please check again in a few hours.
"
}
}
}
}