Forum Discussion
heskez_36146
Nimbostratus
Nov 12, 2013Irule 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...
Kevin_Stewart
Employee
Nov 12, 2013You still need 1) the switch/if context to evaluate the URI, and 2) a default condition to display the html page:
when HTTP_REQUEST {
switch [HTTP::uri] {
"/index.css" {
HTTP::respond 200 content [ifile get index.css] "Content-Type" "text/css"
}
"/logo.gif" {
HTTP::respond 200 content [ifile get logo.gif] "Content-Type" "image/gif"
}
default {
HTTP::respond 200 content [ifile get error.html] "Content-Type" "text/html"
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects