Forum Discussion
sandy16
Nov 13, 2012Altostratus
here you go -
when HTTP_REQUEST {
log local0. "URI = [HTTP::uri]"
switch -glob [string tolower [HTTP::uri]] {
"/devproxy" {
pool devproxy-pool
return
}
"/qaproxy" {
pool qaproxy-pool
return
}
"/uatproxy" {
pool uatproxy-pool
return
}
default {
HTTP::respond 200 content "Please use /devproxy to go to the dev-dmz-proxies,
/qaproxy to go to the qa-dmz-proxies,
/uatproxy to go to the uat-dmz-proxies" noserver Content-Type "text/html" Connection Close
}
}
}