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, 2013Here's an updated version of your approach:
when HTTP_REQUEST {
if {[class match -- [string tolower [HTTP::path]] ends_with images] } {
pool Apache_Pool_80
} elseif { ([HTTP::path] ends_with ".gif") || ([HTTP::uri] ends_with "/qas") } {
pool Weblogic_Pool
} elseif {[HTTP::uri] starts_with "/webservices" } {
pool Weblogic_Services_Pool
} elseif {[HTTP::uri] contains "/atgws" } {
pool buybuybaby.com_services_80
} else {
pool Apache_Pool_80
}
}
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