Forum Discussion
ularssx_95224
Nimbostratus
Mar 10, 2009http redirect irule issue
Hello all -
I have what I thought should be a simple rule.
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] contains $::siloSIRSI ] } {
pool syndeti...
hoolio
Cirrostratus
Mar 10, 2009If a client makes multiple requests over the same TCP connection, subsequent requests will not necessarily be sent to the default pool. It's always better to specify a default (or "else") clause in the iRule if you're selecting a pool. You can do this without hardcoding the name of the default pool:
when CLIENT_ACCEPTED {
Save the name of the VIP's default pool
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if {$some_condition==1}{
pool pool_1
} elseif {$some_other_condition==1}{
pool pool_2
} else {
Use the VIP's default pool
pool $default_pool
}
}
Aaron
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
