Forum Discussion
Oct 03, 2006
I'd use a switch statement myself...
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/jm/pms*" -
"/cgi/pms/*" {
pool PMS_java
}
"/jm/*" -
"/jms/*" -
"/servlet/*" -
"*_JM" -
"*_JSEA" -
"/dwr/*" {
pool Java_Servers
}
"*/ml/*" {
pool SQL_Servers
}
default {
pool static_server
}
}
}
I think I've got all of your starts_with and ends_with correct, but you should double check.
Hope this helps...
-Joe