Forum Discussion
Mike_S_59924
Nimbostratus
Apr 14, 2008comparison other than equals
Looks like irules only support equals and not equals. Is there any way to simulate greater than and less than.
The problem.
We have a web site w/ 240 virtual directories. We want...
hoolio
Cirrostratus
Apr 17, 2008How about combining the two approaches so that you say paths starting with /?A-/?F go to pool 1, /?G-/?M to pool 2, /?N-/?T to pool 3 and /?U-/?Z to pool 4?
Something like this?
when HTTP_REQUEST {
Parse the third character in the path
switch [string tolower [string range [HTTP::path]] 2 2] {
a - b - c - d - e - f {
pool pool_a_f
}
g - h - i - j - k - l - m {
pool pool_g_m
}
n - o - p - q - r - s - t {
pool pool_n_t
}
u - v - w - x - y - z {
pool pool_u_z
}
default {
Requested URI was less than three characters long
pool pool_default
}
}
}
Aaron
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