Bryce_Halkerst1
Apr 18, 2013Nimbostratus
iRule 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
profile httpclass apache_content_httpclass {
defaults from httpclass
pool apache
redirect none
paths
"/*.gif*"
"/*.pdf*"
"/*.txt*"
"/*.css*"
"/*.GIF*"
"/*.SWF*"
"/*.PDF*"
"/*.TXT*"
"/*.CSS*"
"/*.flv*"
"/*.FLV*"
"/*.png*"
"/*.PNG*"
"/*.ico*"
"/*.swf*"
"/*.js"
regex ".*\\.js[^p]+.*"
glob "/*.JS"
regex ".*\\.JS[^p]+.*"
glob "/*.jpg*"
"/*.JPG*"
"/*.JPEG*"
"/*.jpeg*"
regex "(?i)^(?!.*\\.jsp).*\\.html?.*$"
glob "/*.eot*"
"/*ttf*"
"/*.ogv"
"/*.mpv"
"/*.webm"
"/*.m4v"
"/*.mp4"
}