Forum Discussion
Jan-81
Nimbostratus
Oct 12, 2017http redirect to another node and uri
Hi All,
We have recently a f5 LTM Appliance. Now I deal with iRules and have already a few simple deployed. But now I have problems to expand an iRule.
Here is my working iRule.
when H...
Lee_Sutcliffe
Nacreous
Oct 12, 2017Put the IP addresses that you want to send to a specific node in a datagroup (type string). Then use the following iRule to match on that condition to a specific node, otherwise redirect as normal.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/" } {
if {[class match [IP::client_addr] equals "client_ip_dg"]} {
[HTTP::uri] /xyz
node 192.168.1.1:80
} else {
HTTP::redirect "http://[HTTP::host]/abc"
}
}
}
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