Forum Discussion
funkdaddy_31014
Nov 21, 2011Nimbostratus
maintenance iRule behavior - multiple redirect/respond and event disable
Hello iRules gurus!
We have an iRule called "maintenance" that we put up on many VIPs (with highest priority - fires first) at once when we're doing scheduled maintenance that should respond...
funkdaddy_31014
Nov 22, 2011Nimbostratus
Thanks nitass for your response.
F5 support made a similar recommendation - put a TCP::close right after the response.
And (drumroll please...) I'm happy to say that either one (HTTP::close or TCP::close) fixes the problem!
Thanks for your help.
So now my WORKING maintenance iRule is:
when HTTP_REQUEST priority 10 {
if { ([matchclass [IP::client_addr] equals $::internal_net]) } {
for matched IPs - allows pass-thru
} else {
switch -glob [HTTP::path] {
"/xyz" {
exception to maint page - do something here
}
default {
HTTP::respond 200 content {
html content here
}
TCP::close
event disable
}
}
}
}
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