Forum Discussion
Tharun_91512
May 23, 2012Nimbostratus
HTTP redirection when one server selected
There is a pool with 2 nodes in it. If the client is connecting to the first node then it should be served normally, but if client is connected to the second server then client should be redirected t...
nathe
May 23, 2012Cirrocumulus
Tharun
See if this works for you:
when HTTP_REQUEST {
Once pool member has been selected check if it's x.x.x.x
if { [IP::addr [LB::server addr] equals x.x.x.x] } {
HTTP::redirect "http://x.x.x.x/index.html"
}
}
Info from https://devcentral.f5.com/wiki/irules.LB__server.ashx
Rgds
N
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