Forum Discussion

spetrof5's avatar
Icon for Nimbostratus rankNimbostratus
Oct 14, 2022

Maintenance page with an image using iRule and iFile, image never gets displayed


Having an issue getting image to display...Have created an iFile and selected an image previously uploaded, iRule calls for that file, however, image never displays, only text.  Any assistance would be greatly appreciated.
Used following article as a starting point:

if { [active_members [LB::server pool]] < 1 } {
switch [HTTP::uri] {
"/maintenance.png" {HTTP::respond 200 content [ifile get "maintenance.png"] "Content-Type" "image/png" }
default {HTTP::respond 200 content
{ is currently in maintenance, sorry for any inconvenience.

I have tried specifying /Common/maintenance.png, still no show.
When I browse the file system, that image is actually under:


Many thanks in advance.