Forum Discussion
Otto_Schmedlap_
Nimbostratus
Jun 14, 2006F5 sending RESET on redirect
I am trying to get a redirect to work per the following config:
virtualA = 1.1.1.1:80
poolA = 1.1.2.1.81, 1.1.2.2:81
iruleA =
when HTTP_REQUEST {
if { [HTTP::uri] equal...
Deb_Allen_18
Jun 14, 2006Historic F5 Account
So you get the redirect, but the subsequent request is reset?
I'd guess there are no live members in the default pool.
You can add a condition to test that & send an HTTP redirect:
when HTTP_REQUEST {
if { [active_nodes poolA] < 1 }{
log local0. "No nodes available for poolA. Redirecting..."
HTTP::redirect http://fallbackhost/sorry.html
} elseif { [HTTP::uri] equals "/" } {
HTTP::redirect "http:///logon/logon.html"
}
}
You could add an explicit else at the end calling the default pool for all other requests, but it should be falling through with the logic you have. Adding an additional log line to expose the URI requested might reveal something as well.
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