redirect to another pool member based on URI string

hi all, i’m looking to implement the following iRule below. What I’m not sure of if I want to redirect to a member of ANOTHER pool. is that possible to do?

(iRule for Pool 1)

} 
 when HTTP_REQUEST { 
 if { [HTTP::uri] starts_with "/web01" } { 
 node 192.168.101.1 80 
 } elseif { [HTTP::uri] starts_with "/web02" } { 
 node 192.168.101.2 80 
 } else { 
 pool pool-2 
 node 192.168.101.20 80 
 }

pool pool-2

node 192.168.101.20 80

Is this syntax valid? Can I redirect it to another pool and member?

thanks in advance.

If you only want requests to go to 192.168.101.20:80, there’s probably no need to specify the pool (“pool-2”) as above. Take a look here:

http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=130

…for some good info on selecting pools, pool members and nodes.

Thanks for the response… it is sort of weird but the second pool as a member with the same IP and port number. It is good to know you can specify the pool.