Forum Discussion
Ranvir_Floura_7
Nimbostratus
Sep 07, 2006iRule to implement uri based redirection (v9.x)
iRule experts,
I am trying to implement an iRule that would basically do redirections based on the uri.
Pool1:
xxx.xxx.xxx.111:8000
xxx.xxx.xxx.222:8000
Pool2:...
Sep 07, 2006
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/business" } {
pool pool_1
} else {
pool pool_2
}
}where "pool_1" and "pool_2" are the names of your respective pools.
Or, if you have the default pool set to pool_2 in your http profile, you could omit the else statement and just override the default for your /business requests
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/business" } {
pool pool_1
}
}PS, love the avatar!
-Joe
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
