Forum Discussion
Chris_103315
Nimbostratus
Mar 04, 2008HTTP_REQUEST event bypassed?
I'm writing an iRule in our production environment to split traffic based on URI. All works fine except there is one request that seemingly doesn't fall into any case and is in turn load-balanced betw...
Nicolas_Menant
Employee
Mar 04, 2008Hi,
With this iRule it should work.
Do you have other iRules assigned to this VS that may create some conflict?
Can you create some logging and redo your testing and see if it goes in the good part ?
ex:
when HTTP_REQUEST
{
log local0. "uri is [HTTP::uri]"
if {[string tolower [HTTP::uri]] starts_with "/forums/" }
{
log local0. "Pool 0103 used"
pool POOL01_03
} elseif {[string tolower [HTTP::uri]] starts_with "/account/" }
{
log local0. "POOL_04_06 used"
pool POOL04_06
} elseif {[string tolower [HTTP::uri]] starts_with "/api/"}
{
log local0. "POOLAPI used"
pool POOLAPI
} else {
log local0. "default pool07_09"
pool POOL07_09
}
}
Can you show us the output available in /var/log/ltm?
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