Forum Discussion
Claude_Chouinar
Nimbostratus
Jan 12, 2014iRule for specific URL to be sent to singel node in the pool
Hello,
We are looking to direct traffic based on a specific URL to a single node in our pool.
Does anyone know the best way to accomplish this task?
Thank you,
Claude Chouinard
Claude_Chouinar
Nimbostratus
Jan 12, 2014This is what I have come up with.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri] equals http://www.companyname.com/images/alp/captchaImages] } {
pool 'pool_name' member 10.10.10.65 80
}
}
This is the error I receive using the iRule Editor
Exception caught in LocalLB::urn:iControl:LocalLB/Rule::create()
Exception: Common::OperationFailed
primary_error_code : 17236305 (0x01070151)
Any help would be appreciated. Thanks
secondary_error_code : 0
error_string : 01070151:3: Rule [/Common/iRuler_Parse_Test_Rule] error: /Common/iRuler_Parse_Test_Rule:2: error: [invalid index: should be integer or "end"][equals]
/Common/iRuler_Parse_Test_Rule:2: error: [invalid index: should be integer or "end"][http://www.alphabroder.com/images/alp/captchaImages]
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