Forum Discussion
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
- heskez_36146
Nimbostratus
Works like a charm Kevin THANK YOU!
- JPV_131616
Cirrus
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 disableset maintenance_mode "true"
if { $maintenance_mode equals "true" } { if {$uri starts_with "/yourapp"} { HTTP::redirect "http://your.site.com/outage.shtml" return } }
}
- heskez_36146
Nimbostratus
Redirection is offcourse the most convenient solution. However, not applicapable to us because we use https content on our site.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com