Forum Discussion
Gustavo_Lazarte
Nimbostratus
Sep 21, 2005Not sending traffic to first pool
Hello,
we just moved from 4.5 and this iRule is not sending any traffic to the edge-fx pool. I tested this iRule with other servers traffic and it is not sending any traffic to the first pool in ...
Sep 21, 2005
Wow, I didn't know anyone had an EDGE-FX anymore! Sweet!
As for the iRule, you might want to clean things up with an external classes as well. It makes the iRule much more manageable.
==== String Data Groups defined in the GUI ====
class hosts_to_cache {
"www.website.com"
"XX.XX.XX.XX"
}
class file_types_to_cache {
".gif"
".jpg"
".GIF"
".JPG"
}
==== iRule ====
when HTTP_REQUEST {
Note: I replaced "contains" with "equals" here since
more than likely you want to do a full string compare
on the host name. Change back to "contains" if you want
to cover extensions of those host names
if { [matchclass [HTTP::host] equals $::hosts_to_cache] } {
if { [matchclass [HTTP::uri] ends_with $::file_types_to_cache] } {
pool edge-fx
} else {
pool web-pool
}
} else {
Just pointing out here that you left out the else clause
of the first if.
}
}-Joe
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