Forum Discussion
RST from f5 when virtual server is down
SYN
SYN, ACK
ACK
RST, ACK
However, the counter on the iRule increments...The virtual server is down by virtue of the pool being down which is doing an HTTP check.
I've tried:
when HTTP_RESPONSE {
if { [HTTP::status] == "403" } {
HTTP::redirect "www.error.com"
}
elseif { [HTTP::status] == "404" } {
HTTP::redirect "www.error.com"
}
}
I've also tried returning a custom error page.
Also tried this:
when HTTP_REQUEST {
Check if the default pool has less than one active member
if { [active_members [LB::server pool]] < 1 } {
HTTP::redirect "www.error.com"
}
}
5 Replies
- Hi JMVaughn,
- You'd definitely want to include the protocol with the hostname in a redirect as Bhattman noted.
- Bhattman,
Yes, it is actually "http://www...." I just replaced the actual site int he example I used.
jv
- I've seen that reset behavior when a second redirect statment is encountered in the processing of a single request. If there's more to the irule than what you've posted or there are other irules applied to the VIP that will execute after this snippet of code, that's a very likely culprit. I second hoolio's suggestion about checking the logs.
- If it were me I'd try using an HTTP::respond 200 Location "www.error.com" rather than the HTTP::redirect and see how that works.
Recent Discussions
Related Content
* 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