Forum Discussion
Freddy_Delgado_
Nimbostratus
Mar 23, 2017irules that load balance http redirects
Looking for irule that will load balance two http redirects for cisco finesee web app?
2 Replies
Could you be more specific/detailed on your requirements???
Cheers,
Kees
This should work.
when CLIENT_ACCEPTED { set redirect_urls {"http://sitea.example.com" "http://siteb.example.com"} set redirect_url [lindex $redirect_urls [expr {[table incr [virtual]_count] % [llength $redirect_urls]}]] } when HTTP_REQUEST { HTTP::redirect $redirect_url }Inspired by a code snippet from Chad Jenison. See:
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