Forum Discussion
Kurt_Knochner_5
Oct 30, 2011Cirrus
in your last iRule:
1.) there are no pool commands
2.) what is " HTTP::uri http://paris-test[HTTP::uri]/" supposed to do? Did you just forget the log statement?
Please try this:
when HTTP_REQUEST {
if { [HTTP::host] contains "dv-strsohioportal" } {
switch -glob [string tolower [HTTP::uri]] {
"/sites/its*" {
log local0. "This time pool - ITS"
pool dv-strsohioportal_its_pool
}
"/sites/inv*" {
log local0. "This time pool - INV"
pool dv-strsohioportal_inv_pool
}
}
log local0. "URL - [HTTP::method] [HTTP::host][HTTP::uri]"
log local0. "Host: [HTTP::header Host]"
log local0. "Request: [HTTP::request]"
}
}
BTW: Why do you need the if clause at the beginning? Are there several domains terminating at that VS?
Regards
Kurt Knochner