Forum Discussion
Robert_47833
Altostratus
May 12, 2011return and HTTP::redirect usage
Hi,I have a irule like this
if {$uri matches_regex "^/(help/)"}
{
HTTP::redirect ]
pool cjj1
return
}
else{
pool cjj2
}
1:don't kno...
richard_77048
Nimbostratus
May 17, 2011Colin,
That's really good to know. So, if you wanted to bail on the rule altogether, would something like this work?
when HTTP_REQUEST {
if { some_condition } {
set bail_on_rule "true"
}
}
when HTTP_RESPONSE {
if { $bail_on_rule equals "true" } {
event disable
}
else {
other_stuff
}
}
Do variables live between events in the same rule? Is there an easier (maybe built in) way of doing this?
Richard
edit: lost my psuedo-code on posting
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