So 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