Forum Discussion
2funky_105078
Cirrus
Jul 31, 2014iRule error optimization
Hi,
For the iRule guru's, i am looking on a way to optimize this iRule which fails saying that the else is not accepted at the end.
Can I do a IF with inside a SWITCH and then a HTTP::redirect in...
2funky_105078
Cirrus
Jul 31, 2014or better do this way
when HTTP_REQUEST {
IF [active_members [LB::server pool]] == 0 } {
do redirect to last resource}
switch -glob [string tolower [HTTP::host]] {
"one.example.com*"
-....
"two.example.com*"
-....
}
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
