Forum Discussion
afara2000_1973
Nimbostratus
Feb 13, 2010redirect to two pools with diff ports
I'm pretty new to irule. I'm trying to access two different web instances using URIs. Requirement is to use single VIP. e.g.,
http://www.mycompany.com/ ;goes to pool1:port1
htt...
The_Bhattman
Nimbostratus
Feb 14, 2010Hi AFara2000,
You could change the URI in the following manner
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/app2" {
HTTP::uri /[HTTP::uri]
pool Pool_2
}
default {
pool Pool_1
}
}
}
I used the switch command because in the long run it executes faster then IF-ELSE.
I hope this helps
Bhattman
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