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
Matt
- Pconlan_71037AltocumulusYes. We do something like this:
- mattboston_5893NimbostratusAll 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.
- hooleylistCirrostratusThe 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_5893NimbostratusI'd rather not change our existing rules without having time to test them.
- hooleylistCirrostratusYou can strip /banners from the URI using string range:
- mattboston_5893NimbostratusSo how would I add the stripping into the following?
- Pconlan_71037AltocumulusI 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