Forum Discussion
heskez_36146
Nimbostratus
Nov 28, 2013Maintanance Irule two issues
Hi there,
We've build a cool maintanance Irule (With your help much appreciated)
when HTTP_REQUEST {
switch [HTTP::uri] {
"/index.css" {
HTTP::respond 200 content [ifile ...
heskez_36146
Nimbostratus
Jan 25, 2014Sure.
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/index.css" {
HTTP::respond 200 content [ifile get index.css] "Content-Type" "text/css"
event disable
}
"/logo.gif" {
HTTP::respond 200 content [ifile get logo.gif] "Content-Type" "image/gif"
event disable
}
"/corners2-grid1-half.png" {
HTTP::respond 200 content [ifile get corners2-grid1-half.png] "Content-Type" "image/gif"
event disable
}
"/body2-grid1-half.gif" {
HTTP::respond 200 content [ifile get body2-grid1-half.gif] "Content-Type" "image/gif"
event disable
}
"/canvas-bottom.png" {
HTTP::respond 200 content [ifile get canvas-bottom.png] "Content-Type" "image/gif"
event disable
}
"/default.jpg" {
HTTP::respond 200 content [ifile get default.jpg] "Content-Type" "image/gif"
event disable
}
default {
HTTP::respond 200 content [ifile get error.html] "Content-Type" "text/html"
event disable
}
}
}
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