Forum Discussion
Freddy_Delgado_
Nimbostratus
Mar 31, 2014Irule with Multiple URL's
I'm trying to figure out how to configure a simple http redirect irule,
however the irule round robins 4 different URL's, does anyone know how to write this?
VIP 1.1.1.1 -----> www.abc.com
...
Cory_50405
Noctilucent
Mar 31, 2014Modified to use your four specified FQDNs:
when RULE_INIT {
set ::whichone 0
}
when HTTP_REQUEST {
switch $::whichone {
0 { HTTP::redirect "http://www.abc.com” }
1 { HTTP::redirect "http://www.aaa.com” }
2 { HTTP::redirect "http://www.bbb.com” }
3 { HTTP::redirect "http://www.ccc.com” }
}
set ::whichone [expr ! $::whichone]
}
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