I have a simpe irule that looks like:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
/images* {
pool pool_images
}
}
}
I also have the default pool configured on the vip to be: pool_website
If I navigate to: http://website.org/ it is trying to fullfil this request from the pool pool_images.
If I change the irule and specify "default pool pool_website" it works correctly.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
/images* {
pool pool_images
}
default { DEFAULT POOL
pool pool_website
}
}
}
Are there other factors that I should be considering?
Is this behavior correct?
Thanks.