Forum Discussion
MK_62657
Nimbostratus
Feb 13, 2008Using F5 as a fall back host
Hello:
Is any using the F5 device itself as a fall back host? I would like to host the maintenance page on the device itself if possible instead of having another server as the fallback host...
Geoff_31301
Nimbostratus
Mar 19, 2008It's starting to - however the /error directory (and the if statement for the error_condition) is now confusing me - where does that /error supposed to exist?
I think I'm getting there following all your steps:
when RULE_INIT {
set ::polr_html {All Servers Down}
}
when HTTP_REQUEST {
if {[active_members myPool] == 0}
if {$error_condition==1} {
The error condition was true, so respond back to client from the iRule
switch [string tolower [HTTP::path]] {
/error/image.png {
HTTP::respond 200 content [b64decode [lindex $::logo_png_class 0]] "Content-Type" "image/png"}
default {
HTTP::respond 200 content $::polr_html
}
}
}
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