Forum Discussion
pkinhyd1986_152
Nimbostratus
Sep 14, 2014Redirecting traffic to different pool based on URL context
Hi Friends,
We have created one VIP and 2 pools on F5
Below the requirement
If the URL address is https://www.abc.com/xyz/home.jsp
Traffic will go to default pool: pool_1
If the URL address is http...
Ryannnnnnnnn
Altocumulus
Sep 14, 2014Hi mate,
Have a go at this (untested for syntax + i just arrived at work ) 🙂
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
In case you wish to add more URIs later
switch -glob $uri {
"/xyz/dashboard/*" {
pool pool_2
}
default {
pool pool_1
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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