Hi Bhattman,
thanks for the reply. Actually I rejigged the rule slightly and put in some log statements to see what was going on. It goes somthing like this
switch -glob [string tolower [HTTP::uri]] {
"/sometext" {
log "Using pool1 for URI [HTTP::uri]"
pool pool1
}
"/sometext2" {
log "Using pool2 for URI [HTTP::uri]"
pool pool2
}
}
log local0. "URI: [HTTP::uri]"
What I noticed was that the cases were not matching yet the last log statement was inidcating the specified URI should have matched. For example if I entered http://webserv.com/sometext the switch would not match byt the log statement would indicate the URI was in fact /sometext. The same applied to all the cases in the switch statement, they all failed yet the log statement indicated they should have matched.
Craig