Forum Discussion
Bryce_Halkerst1
Nimbostratus
Apr 18, 2013iRule Data Group with string and regex
All,
Need to replace http class with with irule data group. Images are pretty straight forward, just need a little help with the regex images that are created on the http class.
HTTP Class...
hoolio
Cirrostratus
Apr 18, 2013Something like that should work. Else you could use a switch statement to check the file types in the iRule itself.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"*.css" -
"*.pdf" -
"*.txt" -
"*.flv" {
Select the Apache pool for static filetypes
pool Apache_Pool_80
}
"/webservices*" -
"/qas*" {
pool Weblogic_Services_Pool
}
default {
Select a pool for non-matching filetypes
pool some_default_pool
}
}
}
Another reply on its way.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects