Forum Discussion
Clint_Byrum_103
Nimbostratus
20 years agoSimple HTTP::uri rule doesn't work as expected
I'm very new to iRules, just got our LTM recently.
I setup a rule like this:
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/jsfeatured.php"} {
pool...
unRuleY_95363
20 years agoHistoric F5 Account
FYI - this is caused be keepalive requests... If you don't explicitly select the pool, the last pool selection stands. Since multiple requests, may come on the same connection, it's a good idea to always have an else clause to pick the default pool.
Nope, you can grab the default pool and put it in a variable.
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if {...} {
pool a
}
elseif {...} {
pool b
}
else {
pool $default_pool
}
}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