Forum Discussion
Angelo
Nimbostratus
Aug 14, 2012I rule not working
Hi For some reason everything works except ServiceInstalledBase when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/solutionsorb*" - "/Ser...
Michael_Yates
Nimbostratus
Aug 14, 2012Hi Angelo,
I believe that boneyard is correct. You might want to verify that your "/Servicesorb*" option in the switch statement is working, because it shouldn't work.
The objects within the switch statment are literal and absolute which is why the "string tolower" option is suggested since it will put all of the text in a known state for comparison.
Try this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/solutionsorb*" -
"/servicesorb*" -
"/servicefileprocessor*" { pool pool_STG_domain }
"/serviceinstalledbase*" -
"/serviceorderbase*" { pool pool_STG_provisioning_domain }
"/partnermaintenance*" -
"/servicesingleview*" -
"/partnermaintenance*" -
"/contentcatalogue*" -
"/msisdnmaintenance*" -
"/ticketing" { pool pool_STG_integration_domain}
}
}
Hope this helps.
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