Forum Discussion
wtwagon_99154
Apr 21, 2011Nimbostratus
Looking to direct users to a server based upon URI
I'm an iRules and coding rookie, but I am trying to complete the following:
User will try to hit:
http://www.x.com/httm_TTT.xml.gz
Where the TTT can be one of the followi...
wtwagon_99154
Apr 21, 2011Nimbostratus
Thanks.
Yes, I was looking at switch too just a moment ago.
I ended up changing my iRule to this:
when HTTP_REQUEST {
if { [class match [HTTP::uri] contains "qml01"] } {
log local
pool qml01.80
} elseif { [matchclass [HTTP::uri] contains "qml02"] } {
pool qml02.80
}
}
This rule also appears to be working - looks like I had some syntax errors.
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