Forum Discussion
hooleylist
Sep 01, 2009Cirrostratus
Can you add some debug to the iRule and try to reproduce the issue?
when CLIENT_ACCEPTED {
Save default pool name
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: New HTTP request to [HTTP::host][HTTP::uri]"
if { [HTTP::path] ends_with ".jpg" }{
log local0. "[IP::client_addr]:[TCP::client_port]: Matched jpg check, using images.xyz.com pool"
pool images.xyz.com
} else {
log local0. "[IP::client_addr]:[TCP::client_port]: Using default pool"
pool $default_pool
}
}
when LB_SELECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: Pool info: [LB::server]"
}
when SERVER_CONNECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: Connection info: [IP::server_addr]:[TCP::server_port]"
}
Can you also post the VIP and profile configuration using 'b virtual VIP_NAME list' and 'b profile PROFILE_NAME list'. Please anonymize the IP addresses and hostnames from the config and logs.
Thanks,
Aaron