eliezer_ramos_2
Mar 09, 2010Nimbostratus
How to use uri datagroup to forward to pool
Hi.. first time. I need to know how if doing this correctly. I'm trying to send traffic to a pool based on URI's in a datagroup. This is what I have so far:
datagroup customerservice2 contains /wrap, among other uri that are hosted out of the same pool member. Based on that I wrote this irule. Irule editor says the syntax is correct, but I may not be using the correct arguments/. Plz HELP!
when HTTP_REQUEST {
if {[ matchclass [HTTP::uri] contains $::customer_care] } {
pool p_customercare}
elseif {[ matchclass [HTTP::uri] contains $::dsm] } {
pool t_was_dsm}
elseif {[ matchclass [HTTP::uri] contains $::vendorapps] } {
pool t_vendorapps}
elseif {[ matchclass [HTTP::uri] contains $::pts] } {
pool p_pts}
elseif {[ matchclass [HTTP::uri] contains $::customerservice2 ] } {
pool p_customerservice2}
}