Forum Discussion
MikeStearns_600
Nimbostratus
Jan 29, 2009HELP with a new irule...disable acceleration
Hello. I am looking to create an irule to do the following:
If the request doesn't end with /abc123.html
AND
if the request doesn't begin with /CPOS2
AND
if...
hoolio
Cirrostratus
Jan 30, 2009Also, I think 'HTTP::class disable' disables the class selection for the duration of the TCP connection. You may want to enable it if the checks aren't true. I think CACHE::disable isn't subject to this as the caching decision is done on each request/response. You could check this by making one matching request and one non-matching request over the same TCP connection and check the debug logging.
Also the AND'd NOTs are a little difficult to follow. Maybe something like this would be easier?
when HTTP_REQUEST {
Check if URI matches these checks
switch -glob [HTTP::uri] {
"*/abc123.html" -
"/CPOS2*" -
"/NEXTAPP*" {
log local0. "[IP::client_addr]:[TCP::client_port]: Not disabling caching/enabling class selection for [HTTP::uri]"
HTTP::class enable
}
default {
log local0. "[IP::client_addr]:[TCP::client_port]: Disabling caching/class selection for [HTTP::uri]"
HTTP::class disable
CACHE::disable
}
}
}
Aaron
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
