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...
pt_73812
Nimbostratus
Jan 26, 2010And just to add to the confusion, if I change the code to this
when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
pool unix_servers
} elseif { [string tolower [HTTP::uri]] starts_with "/tv/my" } {
pool windows_servers
} elseif { [string tolower [HTTP::uri]] starts_with "/tv" } {
pool unix_servers
} else {
pool windows_servers
}
}
Jan 26 12:00:29 tmm tmm[1643]: Rule log_test : 71.x.x.x:1462: GET request to www.xyz.com/tv/my-link
Jan 26 12:00:29 tmm tmm[1643]: Rule log_test : 71.x.x.x:1462: Matched /tv/my-link, using windows_servers
Jan 26 12:00:29 tmm tmm[1643]: Rule log_test : 71.x.x.x:1462: Server info: win_servers 10.x.x.5 80
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
