Forum Discussion
Aidan_Carty_242
Nimbostratus
Jan 31, 2006Loadbalance redirects
Were migrating an internet application behind a BIGIP,
it has specfic url requirements so we have a simple iRule on a virtual server, all working fine.
rule redirect_to_webservers {
...
Aidan_Carty_242
Nimbostratus
Feb 06, 2006Thanks Guys, see the below rule we put together...
rule lb_rule {
when RULE_INIT {
set ::lb_counter 1
log local0. "Rule Starting lb_counter is $::lb_counter"
}
when HTTP_REQUEST {
log local0. "HTTP Request counter is $::lb_counter"
if {$::lb_counter == 1} {
set ::lb_counter 2
log "Logging to server1"
HTTP::redirect "https://server1.f5.com"
}
elseif {$::lb_counter == 2} {
set ::lb_counter 3
log local0. "Logging to server2"
HTTP::redirect "https://server2.f5.com"
}
elseif {$::lb_counter == 3} {
set ::lb_counter 1
log local0. "Logging to server3"
HTTP::redirect "https://server3.f5.com"
}
}
}
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