First I'd ask, is there a reason you actually want to redirect to different host names, and not just different servers fed by a single host name? If you have
www.url.com pointed to your VIP on your LTM and 3 servers in the pool that VIP feeds, you'd have RR load balancing taken care of already.
Regardless, if you actually want to do redirects to those host names you could do something like:
when CLIENT_ACCEPTED {
set c 0
}
when HTTP_REQUEST {
switch c {
0 {
HTTP::redirect "http://www1.url.com"
incr c
}
1 {
HTTP::redirect "http://www2.url.com"
incr c
}
2 {
HTTP::redirect "http://www3.url.com"
set c 0
}
}
}
That's a simple take on it without any error checking, but you get the idea. Hopefully it gets you started.
Colin