Forum Discussion
Festus_50639
Nimbostratus
Dec 01, 2008"Select pool based on uri content" iRule doesn't seem to be working
Good morning,
I have an iRule that is designed to select a pool based on a string found in the uri and it doesn't seem to be working. I have a log that collects the uri for reference....
hoolio
Cirrostratus
Aug 21, 2009What port(s) are the pool members defined on? Can you add a log line or two and post the logs from a failure?
when LB_SELECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: LB info: [LB::server]"
}
when SERVER_CONNECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: server info: [IP::server_addr]:[TCP::server_port]"
}
Also, you can use HTTP::query to get the query string value. So you could remove "set svc_uri [string tolower [getfield [HTTP::uri] ? 1]]" and use HTTP::query.
Aaron
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