F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Robert_47833's avatar
Robert_47833
Icon for Altostratus rankAltostratus
Nov 13, 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?

25 Replies