Forum Discussion
ularssx_95224
Nimbostratus
Mar 10, 2009http redirect irule issue
Hello all -
I have what I thought should be a simple rule.
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] contains $::siloSIRSI ] } {
pool syndeti...
hoolio
Cirrostratus
Mar 10, 2009Hi Sean,
The rule looks fine as far as the syntax goes. Can you add logging to the iRule and provide more detail on which requests fail and what log output you see for a failure?
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: New request to [HTTP::host][HTTP::uri]"
if { [matchclass [HTTP::uri] contains $::siloSIRSI ] } {
log local0. "[IP::client_addr]:[TCP::client_port]: Using pool syndetics2.com-linux"
pool syndetics2.com-linux
} elseif { [matchclass [HTTP::uri] contains $::clientURI ] } {
log local0. "[IP::client_addr]:[TCP::client_port]: Using pool syndetics.com-linux"
pool syndetics.com-linux
} elseif { [matchclass [HTTP::uri] contains $::badclient ] } {
log local0. "[IP::client_addr]:[TCP::client_port]: Using pool Bad_Clients"
pool Bad_Clients
} else {
log local0. "[IP::client_addr]:[TCP::client_port]: Using pool Syndetics.com"
pool Syndetics.com
}
}
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
