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_...
Ilian_Ivanov
Nimbostratus
May 31, 2017Yes, the iRule looks correct. About the persistence, you can set cookie persistence on your VIP and use that iRule to disable the persistence for Pool_CRM81_Content_80:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { $uri starts_with "/ecommunications_ccfra" } {
pool Pool_CRM81_ccfra
}
if { $uri starts_with "/content" } {
pool Pool_CRM81_Content_80
persist none
}
else {
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