Forum Discussion

heskez_36146's avatar
heskez_36146
Icon for Nimbostratus rankNimbostratus
Nov 12, 2013

Irule maintanance page with ifile

Hi there,

 

I'd like to create a maintanance page irule which i can attach to a VIP if necessary. We've an existing custom prebuild maintanance page with images and css file. I've uploaded all the files (images/ccs and html) with the import ifile list option. After that I created this Irule to begin with:

 

when HTTP_REQUEST { HTTP::respond 200 content get ifile "error.html"

 

}

 

This doesn't show the page but when I paste the whole html content in the irule I don't get to see the images either. So I don't know to proceed.

 

13 Replies

  • why don't you serve the maintenance page from some other VIP/URL and do something like this on the VIP where you want to enable splash;

     

    when HTTP_REQUEST { set uri [HTTP::uri]

     

    set to true to enable/false to disable

    set maintenance_mode "true"

     

    if { $maintenance_mode equals "true" } { if {$uri starts_with "/yourapp"} { HTTP::redirect "http://your.site.com/outage.shtml" return } }

     

    }

     

  • Redirection is offcourse the most convenient solution. However, not applicapable to us because we use https content on our site.