Forum Discussion
chungyu_16122
Jul 21, 2011Altostratus
Refine iRule with external class file
I have created an iRule where I pick which servers are used based off URI. IE. if www.mysite.ca/principal go to webnode and if www.mysite.ca/it go to drupal.
One thing I am having trouble w...
Jul 24, 2011
One thing I am having trouble with is the format of the external file. does anyone know how to write the rule so that only the exact match to the file is sent. Certain sites start similar , such /it and /italian. Wondering how the file can be written to pick the exact phrase I specify?
In this case it's not how the class/datagroup is written exactly, but it's the operator... You're using "starts_with" so your /it is going to catch /italian as wel.. try "equals"..
Check out a list of valid operators in part 2 of iRules 101.. and while you're at it, check out all the lectures in the series... They are very informative and really put the pieces together..
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/124/iRules-101--02--If-and-Expressions.aspx
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