Forum Discussion
nitass
Jan 06, 2014Employee
If I combine them the first section fails when activated and the connection fails. the second section will work if the condition of the first section is false.
how did you combine? is it something like this?
when HTTP_REQUEST {
set DEBUG 0
if {[active_members RHW-QA-RHW-HTTP] < 1} {
pool RHW-QA-RHW-HTTP-PH
return
}
if { $DEBUG } { log local0. "Request: [HTTP::uri]" }
switch -regex [string tolower [HTTP::uri]] {
"^/jobsearch.*" {
if { $DEBUG } {log local0. "Sending request to RHW-QA-RHW-HTTP-APP" }
pool RHW-QA-RHW-HTTP-APP
}
default {
pool RHW-QA-RHW-HTTP
}
}
}
by the way, is regex really needed? can it be glob instead?