Forum Discussion
Russell_77729
Nimbostratus
Dec 24, 2012Server Maintenance Page
So I have a VS with a pool that contains only one server. I am doing SSL offload to F5. If that one server is down I would like an iRule to display as simple message saying "Sorry, this server is d...
What_Lies_Bene1
Cirrostratus
Dec 24, 2012Or for css and images, using iFiles;
iFiles must be uploaded in advance. Note there is no requirement to
specify the file extension and thus two files cannot have the same name
index is a html file, some-image is an image file, requested and sent file
names do not need to match
when HTTP_REQUEST {
if {[active_members [LB::server pool]] < 1} {
switch [HTTP::uri] {
"/" { HTTP::respond 200 content [ifile get "index"] }
"/some-image.jpg" { HTTP::respond 200 content [ifile get "some-image"] }
}
}
}
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