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 ...
Gustavo_Lazarte
Nimbostratus
Sep 21, 2005if i can figure out how to fail gif + jpg to my webpool i will change my IRule to something like
==== 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.
}
}
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