Forum Discussion
Frank_J_104756
Sep 25, 2007Historic F5 Account
testing external connectivity
Is there a way within the irule to test the server I'm going to redirect to? Basically I want to redirect to http://redirectserver.com if certain criteria are met but only if that server is up and re...
Deb_Allen_18
Sep 26, 2007Historic F5 Account
Well, technically, no....
...but if the redirect target server has a single static IP, you *could* define it as a member of a pool, apply an HTTP monitor, and verify status in an iRule before issuing the redirect...
pool FallbackTestPool {
member :80
monitor send recv
rule RedirectIfFallbackUP {
when {
if {[LB::status pool FallbackTestPool member 80] != "up"} {
HTTP::redirect "..."
} else {
}
}
}
HTH
/deb
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