Hi and thanks for the help... Indeed, that is what I really would like to have, but somehow I just can't get it to work.
the example:
Pool 1 contains server1, Pool 2 contains server 2...
and...
- if a reply from server contains e.g. username "Homer" ---> should go to pool4
I have this kind of an iRule... (copied from Devcentral)
when HTTP_REQUEST {
log local0. "request received"
if { [string tolower [HTTP::uri]] starts_with "Tequila" } {
log local0. "request for service received. Selecting end server"
pool Pool2 }
elseif { [string tolower [HTTP::uri]] starts_with "Whiskey" } {
log local0. "request for service received. Selecting end server"
pool Pool3
}
else { pool Pool1
log local0. "Condition not matched. to Pool 1..."
}
}
when SERVER_CONNECTED {
log local0. "Connection from [IP::client_addr]:[TCP::client_port] to 2. server: [IP::server_addr]:[TCP::server_port] established."
}
Somehow it just not work properly the connection is taken to wrong server of not at all
Esa