Forum Discussion
clgarland_14508
Nimbostratus
Apr 14, 2010New to irules, need simple uri rule
Just need a simple irule for http requests, if the uri is /test1 use a test1 pool, if the uri is /test2 use test2 pool.
Thanks!!!!
The_Bhattman
Nimbostratus
Apr 15, 2010Hi Clgarland,
You can also use the SWITCH command :
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/test1" { pool test1 }
"/test2" { pool test2 }
default { pool default }
}
}
I hope this helps,
Bhattman
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