Forum Discussion
jcoleman_105753
Nov 20, 2007Historic F5 Account
Virtual Entry in iRules Wiki
The iRules wiki has the following sample code that is suppose to allow you to "Route the traffic to virtual server instead of normal server selection by load balancing." However, in 9.4.3 and in 9.2.4 entering the code below taken verbatim from the wiki results in this error, 01070151:3: Rule [test] error:line 2: [invalid keyword "my_post_processing_server" must be: name] [my_post_processing_server]". Is there syntax missing?
when HTTP_REQUEST {
virtual my_post_processing_server
}
Maybe this is not what I am looking for I want to redirect a client to another virtual server based upon criteria that I specify; for instance a specific string in the uri. Based on the info from the site I created the following iRule.
when HTTP_REQUEST {
if { [HTTP::uri] contains "/training" } {
virtual media_80
}
}
Is there a different or more correct way of doing this.
Thanks for the assist!
- hoolio
Cirrostratus
Hi, - jcoleman_105753Historic F5 AccountAaron,
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