Forum Discussion
Dave_Horsey_225
Nimbostratus
Apr 12, 2006multiple "uri contains" matches
I am trying to write a rule that will catch many different uri matches. The orginal rule that I am working off is as follows:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]...
Dave_Horsey_225
Nimbostratus
Apr 12, 2006I get the following error when I try to save the rule:
01070151:3: Rule [Blog_Redirect] error:
line 2: [undefined procedure: class] [class myURIs { "blog" "msgs" "theme"}]
I am currently running BigIP version 9.0.5. Is class not available in this version?
Here is the entire rule that I am trying to save:
class myURIs { "blog" "msgs" "theme"}
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::uri] ] contains $::myURIs ] } {
pool MIS-WEB21-CS
} else {
pool MIS-WEB20-4
}
}
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