Forum Discussion
Robert_47833
Altostratus
Sep 29, 2011can I use switch in this way?
insert switch in to another switch
can I use it in this way?
switch -glob [HTTP::uri] {
"/" {
switch -glob [string tolower [HTTP::host]] {
"*.co.uk" {
HTTP::redirect
return
}
default {
HTTP::redirect
return
}
}
}
"/account*" {
persist none
pool MYX
return
}
3 Replies
- Hamish
Cirrocumulus
I'm not aware of any problems nesting switches... Why? Are you having problems? (Sorry waiting for dentist at the moment so dont have access to an LTM to try it out) - Robert_47833
Altostratus
thanks,Hamish - Michael_Yates
Nimbostratus
I agree with Hamish and I can confirm that it should not cause any issues (I have numerous nested switch iRules).
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