Forum Discussion
ASMAPMLTM
Sep 01, 2023Altostratus
Loadbalance a URL to 3 URLs
Hi Guys, I have a requirement like when HTTP_REQUEST { if { [HTTP::path] equals "/exampletext" it should loadbalance/roundrobin the redirection to 3 URLs shown below "https://abc1ee.xyz.com/exam...
ASMAPMLTM
Sep 05, 2023Altostratus
This worked, but dont sometimes it fails out of nowhere
when RULE_INIT {
set ::c 0
}
when HTTP_REQUEST {
event enable
switch $::c {
0 {
HTTP::redirect "https://abc1ee.xyz.com/exampletext_1"
incr ::c
event disable
}
1 {
HTTP::redirect "https://abc2ee.xyz.com/exampletext_2"
incr ::c
event disable
}
2 {
HTTP::redirect "https://abc3ee.xyz.com/exampletext_3"
set ::c 0
event disable
}
}
}
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