Forum Discussion
jdewing
Cirrus
Nov 05, 2009URI Redirection
I'm new to IRule. I need to write a IRule to redirect to a specific server in the pool based on the path.
For example, https://Server1.com/ExportData should redirect to https://192.1...
jdewing
Cirrus
Nov 05, 2009CB,
Thanks for your help. You put me in the right direction. I got it working.. here what I did..
************************
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
if { $uri contains "exportdata" } {
pool Servers_Pool member 192.168.1.10 80
}
}
*************************
i used "string tolower" because of the case sensitive issues.
Jamie
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