Forum Discussion
CraigM_17826
Altocumulus
Dec 02, 2009Very odd behaviour when URI contains a - or _ in a string you are checking for
Hi everyone,
I think I have come across an odd issue with using string compares for selecting pools. I am checking for a specfic piece of text in a URL and if it is found it will use a ...
The_Bhattman
Nimbostratus
Dec 02, 2009Hi Brian,
After your reading your article a second time the iRule is basically inspecting the URI and then passing that information to a selected pool member. It's not changing the URI so I suspect that it might be something with websphere rather then load balancer or the Irule
However you could add logging statements so you can check
I.E
when HTTP_REQUEST {
log local0. "This is the uri: [HTTP::uri] that the irule receives"
if { [string tolower [HTTP::uri]] contains "/exam-services" } {
if { [active_members ExamServices] > 0 } {
pool ExamServices
} else {
pool ExamServices_Error
}
}
}
I hope this helps
Bhattman
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
