Forum Discussion

eliezer_ramos_2's avatar
eliezer_ramos_2
Icon for Nimbostratus rankNimbostratus
Mar 09, 2010

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}

 

}

 

 

 

11 Replies