andy_22730
Dec 19, 2008Nimbostratus
Use redirect and pools in same iRule?
I'm trying to build one irule that has all my logic in it, it will parse the URI of the request and send some URIs to a pool, but send others to external servers via HTTP::REDIRECT.
I don't seem to be able to do this in a single rule.
Should I use 2 rules? Is that slower?
Here is the logic of the rules:
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/foo"} {HTTP::redirect "http://foo.com"}
if {[HTTP::uri] starts_with "/bar"} {pool bar-pool}
}
I can create this irule, but anytime it matches to the bar, I get a tmm error about redirecting.... and it never redirects to the member of the pool.