Forum Discussion
hooleylist
Feb 08, 2011Cirrostratus
Hi Sven,
You could use a switch statement. It shouldn't make a big difference, but it's a bit cleaner:
when HTTP_REQUEST {
switch [HTTP::host] {
"front_web" {
if { [string tolower [HHTP::uri]] starts_with "/servlet/livegiverservlet" } {
pool poolname_2025
} else {
pool poolname_2020
}
}
"tr_web" {
if { [string tolower [HHTP::uri]] starts_with "/servlet/livegiverservlet" } {
pool poolname_4025
} else {
pool poolname_4020
}
}
}
}
Aaron