Forum Discussion
Yazid_Abdesslam
Nimbostratus
May 31, 2017Send traffic from one VS to different pools depending on URI
Hello,
We have got:
- 2 possible URI's,
- 1 Virtual Server
- 2 Pools
We'd like to forward traffic to Pool_CRM81_ccfr if uri contains or starts with "/ecommunications_ccfra"
& send to Pool_CRM81_...
Stanislas_Piro2
Cumulonimbus
May 31, 2017Hi,
You can also use a switch instead of if / then / else
when HTTP_REQUEST {
switch -glob -- [string tolower [HTTP::uri]] {
"/ecommunications_ccfra*" {
pool Pool_CRM81_ccfra
}
"/content*" {
pool Pool_CRM81_Content_80
persist none
}
default {drop}
}
}
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