Forum Discussion
Gary_T_31565
Nimbostratus
Apr 23, 2007HTTP::fallback not working
hi,
new to irules. I am trialing 3400s.
HTTP:fallback is not working? I see "fallback host" in log. Tried with IE6 and IE7 just in case. Pool as two members which have their app pools stopped. URL works.
Seems simple check everyone else use of it...what am I missing?
Also is there a function to turn off a member i.e. change its status for unavailable.
Thanks
Gary
when CLIENT_ACCEPTED {
set retries 0}
when HTTP_REQUEST {
set request [HTTP::request]}
when HTTP_RESPONSE {
if { [HTTP::status] eq "503"} {
if { $retries < [active_members Pool2] } {
log "503 retrying $retries"
incr retries
HTTP::retry $request
}
else {
log "Fallback Host"
HTTP::fallback "http://livevm1/garys_warning.htm"
}
}
}
- Deb_Allen_18Historic F5 AccountHi Gary --
when CLIENT_ACCEPTED { set retries 0 } when HTTP_REQUEST { set request [HTTP::request] } when HTTP_RESPONSE { if {[HTTP::status] eq "503"} { if {$retries < [active_members Pool2]} { log "503 retrying $retries" incr retries HTTP::retry $request } else { log "Max retries exceeded -- redirecting" HTTP::redirect "http://livevm1/garys_warning.htm" } } }
- Gary_T_31565
Nimbostratus
- Deb_Allen_18Historic F5 AccountGreat!
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