Forum Discussion
Daddy_73321
Nimbostratus
Feb 09, 2010Irule issue
Hello All,
I have an issue with the below irule written to direct the traffic to a node or a pool.
I have a pool CMS-http-pool with below two members.
pool...
hoolio
Cirrostratus
Feb 09, 2010Can you try this iRule which should log all of the relevant details and reply with the anonymized log output:
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] request to [HTTP::host][HTTP::uri]\
with CMS cookie [HTTP::cookie CMS]"
Check the requested URI
switch -glob [HTTP::uri] {
"/citsitdocumentation*" -
"/psoftdms*" -
"/cso*" {
pool CMS-http-pool member 10.103.42.100 80
log local0. "[IP::client_addr]:[TCP::client_port]: URI match, selecting specific member 10.103.42.100 80"
}
default {
pool CMS-http-pool
log local0. "[IP::client_addr]:[TCP::client_port]: No URI match, using pool"
}
}
}
when SERVER_CONNECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: Connected to server [IP::server_addr]:[TCP::server_port]"
}
when HTTP_RESPONSE {
log local0. "[IP::client_addr]:[TCP::client_port]: status: [HTTP::status], CMS cookie: [HTTP::cookie CMS]"
}
Thanks,
Aaron
(edited to add *'s to the last two URI checks)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
