Forum Discussion

Robert_47833's avatar
Robert_47833
Icon for Altostratus rankAltostratus
Nov 14, 2011

how to use switch to match datagroup

1:there is a datagroup:cjj

 

how to use switch to match this group

 

 

switch -glob [HTTP::path] {

 

"cjj" xxxx ???

 

 

2:

 

 

switch -glob [HTTP::path] { "*jpg" - "*bmp" - "*gif" - "*png" - "*img" - "*ico" - "*js" - "*css" - "*swf" - "*swz" - "*vbs" - "*html" - "*htm" - "*csv" - "*txt" - "*crossdomain.xml" {pool xyz}

 

 

in this case,should I create a variable uri to replace [HTTP::path] to make the irule more efficent?