Forum Discussion

John_45729's avatar
John_45729
Icon for Nimbostratus rankNimbostratus
Jul 26, 2010

URI's with fullstops down't work

Hi,

 

 

I'm trying to create a new irule for redirecting to specific pools, but when we try add a wildcard name that has fullstops in the rule doesn't work, example below:

 

 

when HTTP_REQUEST {

 

switch -glob [string tolower [HTTP::path]] {

 

"*/jet2news*" {

 

pool stage_jet2_com

 

}

 

"*/jet2.Reservations.web.callcentre*" {

 

pool res-cc-test-pool

 

}

 

"*/uploadedimages*" {

 

pool stage_jet2_com

 

}

 

"*/homepagedigital*" {

 

pool stage_jet2_com

 

}

 

default {

 

pool TIN-DMZ-HTTP-POOL

 

}

 

}

 

}

 

 

Is this a bug, is it by design or is there a workaround?

 

 

John.

 

2 Replies

  • George_Watkins_'s avatar
    George_Watkins_
    Historic F5 Account
    Hi John,

     

     

    When you say it doesn't work, is there an error that is displayed when you submit the iRule or does it not work as expected when you hit the virtual? What version are you working with here?

     

     

    -George
  • Hi John,

     

     

    I don't think it's the full stops. They don't have any special meaning with glob style matching. It's the upper case letters in the pattern combined with the fact that you're setting the path to lowercase.

     

     

    Aaron