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, 2008SO this logic should work - based on the trimmed down version without the image (for easier following):
when RULE_INIT {
set polr "We are currently performing maintenance. Please check back later."
}
when HTTP_REQUEST {
if {[active_members Wildcard_Pool_Test] == 0} {
HTTP::respond 200 content $::polr
}
elseif {[HTTP::cookie exists "cookieName"]} {
HTTP::cookie decrypt "cookieName" "passphrase"
}
}
when HTTP_RESPONSE {
if {[HTTP::cookie exists "cookieName"]} {
HTTP::cookie encrypt "cookieName" "passphrase"
}
}
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