Forum Discussion
Srinivasan_G_31
Nimbostratus
Oct 25, 2012iRule help
Hi,
I want an iRule which can match a specific URI on an incoming http request and redirect traffic to a specific pool member of a pool. Please help.
Srini
hoolio
Cirrostratus
Oct 29, 2012If you want to specify a particular pool member for requests which have a URI that contains four digits you could try something like this (1.1.1.1:80 being the special pool member of the VS default pool):
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"*[0-9][0-9][0-9][0-9]*" { pool [LB::server pool] member 1.1.1.1 80 }
default { pool [LB::server pool] }
}
}
Aaron
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