Forum Discussion
Nantu_Mandal_16
Nimbostratus
Nov 17, 2014iRule for Pool member redirection
Hi,
I have a requirement from my customer. Need some advice how to proceed with iRule with iApp.
Fqdn : abc.def.com (user would be accessing abc.def.com/ghi and abc.def.com/jkl)
VS_IP: 10.20.30....
Nantu_Mandal_16
Nimbostratus
Nov 19, 2014Hey Nitass,
I have gone through both of the solution. I will try to apply Tomorrow on my LB. I am going to configure one iApp with default pool. Also will apply one iRule to the VS.
Like this: Will this work?
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/foo" } {
pool foo
} else {
pool bar
}
}
Or, Should I use the next one:
when CLIENT_ACCEPTED {
since no LB decision has been made for each brand new connection,
[LB::server pool] returns the name of the default pool configured on the virtual server
set def_pool [LB::server pool]
}
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/foo" } {
pool foo
} else {
pool $def_pool
}
}
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