Forum Discussion
KTrout_49248
Nimbostratus
Apr 16, 2008HTTP redirect to Pools members
How can I create an iRule that will redirect a specific URL to a pool of Web servers hosting the website?
Kevin_Stewart
Employee
Apr 16, 2008This is assuming that you have more than one pool of web servers, otherwise configure the virtual server profile to point to a single defined pool on the resources tab.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/url1" {
pool web
}
"/url2" {
pool web2
}
default {
pool web
}
}
}"default" should point to whichever pool you want traffic to go to if the uri is different than those defined in the statement.
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