Forum Discussion
Jorge_106500
Oct 07, 2011Nimbostratus
TMSH b conn
Hi, this is my first question, I have one question, wich is equivalent command: "b conn client x.x.x.x" in tmsh?
Hi Bob,
What about checking for the host itself? Here is the following using the SWITCH command along with the IF statement.
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