Forum Discussion
jaikumar_f5
Apr 26, 2018MVP
The logic is looking good, but would you mind trying this,
when HTTP_REQUEST {
if { [HTTP::host] contains "www.bbb.es" } {
if { ( ([HTTP::method] equals "POST") && ([HTTP::uri] starts_with "/boa/index.jsf" ))
||([HTTP::uri] starts_with "/boa/hotelResult.jsf") } {
pool pro-http-sur
clone pool pro-clone-sur
log local0. "Host matched if-if condition - CLONING, HOST: [HTTP::host] has URI : [HTTP::uri] of Method: [HTTP::method]"
} else {
pool pro-http-sur
log local0. "Host matched if-else condition - NO CLONE, HOST: [HTTP::host] has URI : [HTTP::uri] of Method: [HTTP::method]"
}
} elseif { [HTTP::host] contains "www.extranetccc.es"} {
pool pro-http-sur-extranet
log local0. "Host matched elseif condition - Extranet, NO CLONE, HOST: [HTTP::host] has URI : [HTTP::uri] of Method: [HTTP::method]"
}
}