Forum Discussion
mattboston_5893
Nimbostratus
Apr 11, 2011Different 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
Matt
7 Replies
Sort By
- Pconlan_71037
Altocumulus
Yes. We do something like this: - mattboston_5893
Nimbostratus
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. - hoolio
Cirrostratus
The if/elseif/else option will be less efficient than a switch statment--particularly since you're setting the Host header value to lower case again for each conditional check. But yes, that would function. - mattboston_5893
Nimbostratus
I'd rather not change our existing rules without having time to test them. - hoolio
Cirrostratus
You can strip /banners from the URI using string range: - mattboston_5893
Nimbostratus
So how would I add the stripping into the following? - Pconlan_71037
Altocumulus
I would think it needs to be in the scope of the elseif, like this:
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