Forum Discussion
Brian_Gupta_115
Nimbostratus
Jan 27, 2005Need a sanity check on a URI parsing rule...
when HTTP_REQUEST {
set my_uri [string tolower [HTTP::uri]]
if { $my_uri contains "/hr" or $my_uri starts_with "hr" } {
pool hrmstest
} ...
bl0ndie_127134
Jan 31, 2005Historic F5 Account
Brian using match class might simplifiy your rule. Here is an example.
class hrmstest_uris {
"/psp/SELFSERVICE/?cmd=login"
"/selfservice"
"/psp/SELFSERVICE/EMPLOYEE/HRMS/h/?tab=DEFAULT"
"/hrtest"
"/hr"
"/psp/HR/?cmd=login"
"/hrdmo88"
}
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] equals $::hrmstest_uris] } {
use pool hrmstest
}
else {
use pool fintest
}
}
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
