Forum Discussion
johtte_168100
Nimbostratus
11 years agoiRule redirect to pool based on path
Hi,
I am migrating rules from ISA Server to F5, actually the ISA check the path and redirect to backend server for example,
domain.com/online -> domain.com/online/ on node01 (10.0.0.1)
dom...
Brad_Parker
Cirrus
11 years agoPart of your problem is order of operations and a couple syntax. Try something like this. It reorders the second two if statements to get your expected results.
HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::redirect "/online/"
return
}
elseif { [HTTP::path] starts_with "/online/auth" } {
node node02 (or pool )
return
}
elseif { [HTTP::path] starts_with "/online" } {
node node01 (or pool member )
return
}
}
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