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...
Bryce_Halkerst1
Nimbostratus
Apr 18, 2013Ok, so I am planning on doing something like this.
Irule Data Group (should {} contain the value?)
ltm data-group internal /Common/images {
records {
.CSS { } Example .CSS {.CSS}
.FLV { }
.GIF { }
.JPEG { }
.JPG { }
.PDF { }
.PNG { }
.SWF { }
.TXT { }
.bmp { }
.css { }
.flv { }
.gif { }
.ico { }
.jpeg { }
.jpg { }
.js { }
.m4v { }
.mp4 { }
.mpv { }
.ogv { }
.pdf { }
.png { }
.swf { }
.ttf { }
.txt { }
.webm { }
}
type string
}
when HTTP_REQUEST {
if {[class match -value -- [string tolower HTTP::uri] contains images] } {
pool Apache_Pool_80
if { ([HTTP::uri] contains "/*.gif*") || ([HTTP::uri] contains "/qas*") } {
pool Weblogic_Pool
if {[HTTP::uri] contains "/webservices*" } {
pool Weblogic_Services_Pool
if {[HTTP::uri] contains "/atgws" } {
pool buybuybaby.com_services_80
} else {
pool Apache_Pool_80
}
}
}
}
}
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