Forum Discussion
John_LeMay_1062
Nimbostratus
Apr 08, 2008Improving on this "catch all"?
Recently I configured a "catch all" type virtual server and I'm handling various aspects of traffic management with an iRule. So far it's working well, but it is already becoming difficult to manage. ...
hoolio
Cirrostratus
Apr 09, 2008Sorry about that. I didn't test the syntax first. You can't have comments in the switch cases:
http://www.tcl.tk/man/tcl8.4/TclCmd/switch.htm
Beware of how you place comments in switch commands. Comments should only be placed inside the execution body of one of the patterns, and not intermingled with the patterns.
So it would need to be like this:
when HTTP_REQUEST {
Parse the HTTP host header value
switch [string tolower [HTTP::host]] {
site1.domain.com {
Host was site1, set the pool to site1 pool
pool pool_site1.domain.com
}
...Aaron
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