Forum Discussion
Bob_10976
Jun 02, 2011Nimbostratus
I'm trying to do this same thing, however using the code above and modifiy for me doesn't seem to work. I'm running ver 10.2.0 HF1, my code is below:
when HTTP_REQUEST {
log local0. "McBob request received"
if { [string tolower [HTTP::path]] starts_with "/mcbob" } {
log local0. "McBob request for service received. Selecting end server"
pool secure2.mydomain.com
}
else { pool secure.mydomain.com
log local0. "Condition not matched. No WIN2K8 server selected."
}
}
when SERVER_CONNECTED {
log local0. "Connection from [IP::client_addr]:[TCP::client_port] to WIN2K8 server: [IP::server_addr]:[TCP::server_port] established."
}
I tried a few varations, in the HTTP:: I tried
HTTP::uri starts_with "/mcbob"
HTTP::uri equals " "
HTTP::path equals "/mcbob/default.html"
HTTP::path starts_with " "
I'm totally lost on what I'm doing wrong. The LTM logs shows no match found and I'm getting a 404 in my browswer so it simply not seeing it. any thoughts on what I'm doing wrong?
Thanks,
Bob