Forum Discussion
iRule not sending traffic to the specified pool
Experts, I have a simple iRule to direct traffic on a particular vip to a pool. For some reason we still see a little traffic on servers outside the pool. Just wanted to make sure the iRule is fine to begin with. Ironically the /l/ and /r/ conditions are obeyed but not the /landing/.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "www.mycompany.com" && ([string tolower [HTTP::uri]] starts_with "/r/" or [string tolower [HTTP::uri]] starts_with "/l/" or [string tolower [HTTP::uri]] starts_with "/landing/") } {
pool www.mycompany.com_landing_80_pool
}
}
3 Replies
- Cory_50405
Noctilucent
I see no reason why /landing/ wouldn't be matched based on the iRule. Only unless it really wasn't matching the URI the client specified.
- Matt_Dierick
Employee
Enable logs in your irule to check each request URI inside and outside the condition.
Let us know. Matt
- Richard__HarlanHistoric F5 Account
If there was existing traffic flowing through the VIP before the iRule was applied it will not be affected by the new iRule. Once that traffic flow is removed and it is recreated it should flow through the new iRule.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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