Forum Discussion
COMMS-CORE_1795
Nimbostratus
Feb 01, 20162 actions in the same rule: redirect + load balance
Hi all,
I need to make an iRule whose behaviour is:
1.- When the web starts with "/a/b" redirect to "/b" AND balance to the pool POOL_x.x.x.x_8090
2.- When the web starts with "/a/" redir...
PeteWhite
Employee
Feb 01, 2016How about this:
when HTTP_REQUEST {
if { [HTTP::path] starts_with "/a/b" } {
pool POOL_ABC
set HTTP::path "/"
} elseif { [HTTP::path] starts_with "/b } {
pool POOL_XYZ
set HTTP::path "/"
}
}
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