Forum Discussion
someguy
Nimbostratus
Mar 06, 2014How can I return content directly from an irule and skip LB/server interaction?
I'm trying to return a pre-defined html page directly from an F5 without hitting backend servers (DC health-check). I have come up with the below irule, but it appears to work about half of the tim...
Mar 06, 2014
Hi! The connection reset is probably due to other rules executing pool selections or redirects.
when HTTP_REQUEST {
if {[HTTP::uri] equals "/ping.html" }
{
set object [class lookup "ping" "ping_objects"]
HTTP::respond 200 content $object noserver Cache-Control No-Cache Pragma No-Cache
set dchc 1
}
}
Then start all the following rules with the following if statement:
if { [info exists blocked] && $blocked == 1 } {
Doing nothing here because of DCHC variable being set
} else {
Put the old iRule content here.
}
/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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