Forum Discussion
eliezer_ramos_2
Nimbostratus
Mar 09, 2010How 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 ...
hoolio
Cirrostratus
Mar 10, 2010Which LTM version are you running? If you add logs to the iRule can you check which cases are matching?
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] request to [HTTP::uri]"
if {[ matchclass [HTTP::uri] contains $::customer_care] } {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched customer_care"
pool p_customercare}
elseif {[ matchclass [HTTP::uri] contains $::dsm] } {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched dsm"
pool t_was_dsm}
elseif {[ matchclass [HTTP::uri] contains $::vendorapps] } {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched vendorapps"
pool t_vendorapps}
elseif {[ matchclass [HTTP::uri] contains $::pts] } {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched pts"
pool p_pts}
elseif {[ matchclass [HTTP::uri] contains $::customerservice2 ] } {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched customerservice2"
pool p_customerservice2
}
}
Aaron
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
