Forum Discussion
Dan_Hughes_1946
Nimbostratus
Jan 06, 2010loadbalanced redirection
Howdy,
Wondering if anyone can suggest a solution to a little problem I have. I want traffic coming into an LTM to be redirected to one of two URLs - based on a round robin loadbanace. ...
Colin_Walker_12
Jan 06, 2010Historic F5 Account
If you just want even distribution of load to two redirects then you'd just need to do something like:
when CLIENT_ACCEPTED {
set count 0
}
when HTTP_REQUEST {
switch $count {
0 {
HTTP::redirect "firsthost.domain.com"
set count 1
}
1 {
HTTP::redirect "secondhost.domain.com"
set count 0
}
}
}
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects