Forum Discussion
Gill_32697
Nimbostratus
Oct 21, 2012help making redirect irule
Im new to irules, need some help writing a irule
vip: 10.1.255.32
node: 10.13.0.61
node: 10.0.1.213
Web programer wants any http request with
http://test.com/Akcelerant/… ...
Mohamed_Lrhazi
Altocumulus
Oct 22, 2012nitass is showing you how to do this with a switch statement, instead of "if" and using a data class to hold your URIs, instead of hard coding them into the iRule, which a lot better.
go under: Local Traffic ›› iRules : Data Group List ›› New Data Group...
Create a String group called uri_class, like in nitass example, put all your URIs there, as "String", leave "Value" empty.
Create the iRule as in nitass example, just use "pool" instead of "node"
I still think you will better served by an HTTP class, instead of an iRule, given that you are not comfortable with scripting.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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