Forum Discussion
URI's with fullstops down't work
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
}
}
}
2 Replies
- George_Watkins_Historic F5 AccountHi 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 - hoolio
Cirrostratus
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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