Forum Discussion
Darrin_Wiens_25
Nimbostratus
Apr 29, 2008Redirect to Multiple URLs
I am in the process of moving from a Cisco CSS to the F5 and I have an interesting Redirect issue. On the CSS, I have a content rule that has two services associated with it. Each service is of a re...
Darrin_Wiens_25
Nimbostratus
Apr 30, 2008So I have another piece I was just asked to address with this. Is there a way to do a health check of the site I'm redirecting to prior to sending the client there? Something like....
when RULE_INIT {
set ::whichone 0
}
when HTTP_REQUEST {
switch $::whichone {
0 {
if healthcheck passes then
HTTP::redirect "http://Server1/blah"
else
HTTP::redirect "http://Server2/blah"
}
1 {
if healthcheck passes then
HTTP::redirect "http://Server2/blah"
else
HTTP::redirect "http://Server1/blah"
}
}
set ::whichone [expr ! $::whichone]
}
I'm not sure how to do a health check on a redirect site or if you can.
Thanks,
-Darrin
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
