Forum Discussion

Dormelchen_2406's avatar
Dormelchen_2406
Icon for Nimbostratus rankNimbostratus
Aug 29, 2011

redirect problem / question for an *. URI

hello,

 

 

we have a large irule with a lot of URI -> Pools

 

 

now i have a question:

 

 

today we have something like this:

 

 

when HTTP_REQUEST {

 

set lowerURI [string tolower [HTTP::uri]]

 

set lowerClientIP [string tolower [IP::client_addr]

 

switch [HTTP::host] {

 

.

 

.

 

.

 

"xyz.tracker.domain.com" {

 

persist source_addr

 

pool xyz.tracker.domain.com_80

 

return

 

}

 

"abc.tracker.domain.com" {

 

persist source_addr

 

pool abc.tracker.domain.com_80

 

return

 

}

 

 

etc...

 

 

Now i want something like

 

"*.tracker.domain.com" ...

 

 

but this * doesnt work...

 

i want every URI that have tracker.domain.com in his name to a specified pool

 

 

 

1 Reply

  • You do not need to use -glob if you are not using Wildcards.

     

     

    If you are using a wildcard do switch -glob [string tolower [HTTP::host]] instead.