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
...
mattboston_5893
Apr 11, 2011Nimbostratus
All of our existing rules use if/elseif/else and do matches like the following (trimmed down). Is it possible to do what you said using the existing if/elseif/else statement.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "www.domain.com"}
{
HTTP::respond 301 Location "http://www.domain.com[HTTP::uri]"
}
elseif { [string tolower [HTTP::host]] equals "images.domain.com"}
{
pool images.domain.com
}
else
{
pool public_http_pool
}
}
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