Forum Discussion

lunitic_56137's avatar
Icon for Nimbostratus rankNimbostratus
Jul 02, 2012

Maintenance/sorry page with image on v11.1

I have written maintenance pages in the past with ease. The examples Devcentral were very helpful. The problem with creating one now that I find are the "iFiles" introduction in v11.



The way we used to do it is this:





Check active members of pool, if 0 respond with Apology Page.


if { [active_members your_pool] == 0 } {


HTTP::respond 200 content {




Apology Page




We are sorry, but the site you are looking for is temporarily out of service



If you feel you have reached this page in error, please try again.












To get a logo in the html, we just had to put it in a path and call it out. With iFiles, I understand, we call it with the "HTTP::response" 200 command. Since I already use it to create the html page, it seems I cant use it again for the logo picture call. I created this iRule for the new sorry page:





Set global variables.


set VSPool [LB::server pool]


set logo [ifile get logo.png]


Check for active members in the associated pool and respond with html content when the pool members are less than 1


if { [active_members $VSPool] < 1 } {


HTTP::respond 200 content {




Maintenance Page















The page you are trying to access our web site, we are currently unavailable due to maintenance. We apologize for the inconvenience. If you need to reach us, please call 1-800-123-1234 or email . If you are a customer and need to access our Support Web site, please go to












I have tried to call the "$logo" variable inside of the html as well as the "[ifile get logo.png]" command but it doesnt work. I even tried to add an "IF" statement before the html "IF" but all it does then is show the logo, no text.







22 Replies