Forum Discussion
Brad_Parker
Dec 22, 2014Cirrus
This could accomplish your goal:
when HTTP_REQUEST {
Check URI set to lower case with wildcard matching
log local0. "Requested hostname: [HTTP::host] from IP: [IP::local_addr] and URI: [HTTP::uri]"
switch -glob [string tolower [HTTP::uri]] {
"/raloh*" {
HTTP::uri "/UI/Portal"
pool pool_WES-PROD-http-8080
}
"/mumrah*" {
HTTP::uri "/UI/Portal"
pool pool_WES-PROD-http-8081
}
default {
pool pool_WES-PROD-http-8081
}
}
}