Forum Discussion
pt_73812
Nimbostratus
Jan 26, 2010dash in URI breaking pool selection?
Hello all,
I've run into a problem with an irule I'm working on. Basically, if there is a dash in the uri, the rule does not seem to pick it up correctly unless there's a trail...
hoolio
Cirrostratus
Jan 26, 2010Sorry, I should have clarified. Here is a version which logs the URI checks and pool selection. Can you post the anonymized log output from /var/log/ltm for a failure?
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] request to [HTTP::host][HTTP::uri]"
if { [HTTP::path] equals "/" } {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched /, using unix_servers"
pool unix_servers
} elseif { [string tolower [HTTP::uri]] starts_with "/tv/my-link/" } {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched /tv/my-link, using windows_servers"
pool windows_servers
} elseif { [string tolower [HTTP::uri]] starts_with "/whatever" } {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched /whatever, using unix_servers"
pool unix_servers
} else {
log local0. "[IP::client_addr]:[TCP::client_port]: No match, using windows_servers"
pool windows_servers
}
}
when SERVER_CONNECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: Server info: [LB::server]"
}
Thanks,
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
