Forum Discussion
rodrigo_Benzaqu
Nimbostratus
May 13, 2005Irule from 4.6 to 9
Hi, I´m new on 9.X, can some body help me to translate this rule to 9.X ?
rule FD_Fetch {
if (http_uri starts_with "/fd/") {
use pool FD_SERVERS
}
else if (http_host == "www.mercadolibre.com.ar") {
use pool NC3100N
}
else if (http_host == "www.mercadolivre.com" or http_host == "www.mercadolivre.com.br") {
use pool Netcache_3100
}
else {
use pool Mexico
}
}
- JRahm
Admin
Try this: - tonio_tian_1127
Nimbostratus
try this - rodrigo_Benzaqu
Nimbostratus
Thanks Guys, - JRahm
Admin
One of the developers would probably be a better source for where the threshold is, but at some point it's wise to build a class and use matchclass in your rule. - rodrigo_Benzaqu
Nimbostratus
Clear, do you have an example of this rule using the matchclass ? - JRahm
Admin
class WebURLs { "www.mercadolivre.com" "www.mercadolivre.com.br" } when HTTP_REQUEST { if { [HTTP::uri] starts_with "/fd/" } { use pool FD_SERVERS } elseif { [HTTP::host] equals "www.mercadolibre.com.ar" } { use pool NC3100N } elseif { [matchclass [HTTP::host] equals $::WebURLs] } { use pool Netcache_3100 } else { use pool Mexico } }
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