Forum Discussion
mattboston_5893
Apr 11, 2011Nimbostratus
Different pool depeding on the URI
With the F5 is it possible to send all traffic for www.domain.com to a default pool, but when someone requests www.domain.com/images it goes to a special images pool of servers?
Thanks
...
Pconlan_71037
Apr 11, 2011Altocumulus
I would think it needs to be in the scope of the elseif, like this:
elseif { [string tolower [HTTP::uri]] starts_with "/images"}
{
HTTP::uri [string range [HTTP::uri] 7 end]
pool images.domain.com
}
I don't know that it would matter if it was before or after the pool statement since the string inspection has already been done. Note that I changed the string inspection line to use HTTP::uri where you had HTTP::host.
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