Forum Discussion
pele1_71290
Dec 04, 2012Nimbostratus
This worked almost perfectly :)
when HTTP_REQUEST {
if { [HTTP::uri] contains "/streaming/node1" } {
HTTP::uri "/external"
pool pool1_http
} elseif { [HTTP::uri] contains "/streaming/node2" } {
HTTP::uri "/external"
pool pool2_http
} else {
pool pool_http
}
}
One detail IF I have something after /streaming/node1/xxxxxxxxx/yyyyyy that I like to keep and its just
the /streaming/nodex/ that i like to substitute with the /external/ and still keep the string that follows after is that possible to do ?
//Peter