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
Yes. We do something like this:
when HTTP_REQUEST {
use tolower to make the match case-insensitive
switch -glob [string tolower [HTTP::path]] {
"/images/*" {
pool ImagesPool
}
"/js/*" {
pool JsPool
}
etc.
etc.
default {
pool defaultPool
}
}
}
The URI gets compared to the strings you specify, and if it matches, the request gets sent to specified pool. If it doesn't match any of them it falls through to the pool specified in the default clause.
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