John_Lin_106399
Jan 04, 2007Nimbostratus
URI rewrite to pool?
I'm looking at our current iRules which so a URI check and sends it to proper pools preserving the URI but now we need to send it to a particular pool with different URI.
My iRule looks likes below
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/a/" } {
pool PoolA }
elseif { [HTTP::uri] starts_with "/b/" }
{ pool PoolB}
}
But if I want traffic that starts with /b/ to goto PoolB but instead of passing "/b/*" as request pass say "/c/*"
What is the proper way to do this while still preserving what goes after the /b/ ?
Please advise