Forum Discussion
The_Bhattman
Jun 07, 2011Nimbostratus
Hi Bob,
Oops. My bad. YOu need an extra bracket
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"secure2.mydomain.com" {
if { [HTTP::path] starts_with "/mcbob" } {
log local0. "Accessed when the URL is http://[HTTP::host]/[HTTP::uri]"
pool secure2.mydomain.com
}
}
"secure.mydomain.com" {
log local0. "Accessed when the URL is http://[HTTP::host]/[HTTP::uri]"
pool secure.mydomain.com
}
}
}
when SERVER_CONNECTED {
log local0. "Connection from [IP::client_addr]:[TCP::client_port] to WIN2K8 server: [IP::server_addr]:[TCP::server_port] established."
}
Bhattman