Forum Discussion
Chris_Corsaro_1
Nimbostratus
Apr 13, 2006iRule to redirect to specific node
We are trying to send all traffic containing a specific uri to one server, however it doesn't seem to be working at this time. This is the iRule that we have setup.
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { $uri starts_with "/csconsole" } {
node 10.x.x.x:XXXX
}
}
Is there something in our iRule that is missing or needs to be reconfigured?
This is a high priority issue so if someone can help us as soon as possible that would be greatly appreciated.
- Colin_Walker_12Historic F5 AccountYour syntax looks VERY close to correct. Try seperating the IP and port numbers with a space, instead of a colon.
when HTTP_REQUEST { if { [string tolower [HTTP::uri] ] starts_with "/csconsole" } { node 10.x.x.x XXXX } }
- Chris_Corsaro_1
Nimbostratus
Thanks Colin. We have updated our iRule and are now testing. Thank you. - Chris_Corsaro_1
Nimbostratus
Initial results look good. Thanks for your help. I will get back to you if we have any issues.
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