Forum Discussion
Thanks for your reply, i can't use LTM policy as the header is not well-known, it is developed by application developer team.
So if i use the below IRule, is that enough to make what i need or not.
when HTTP_REQUEST {
if { [HTTP::header "name"] contains "value" } {
node 192.168.7.180 80
}
}
Hi Mostafa,
In your iRule, as you are load balancing to a member (IP address plus a port number), rather than a node (IP address only), you should use a different syntax;
pool my_Pool member 10.1.2.200 80
See more details here: https://clouddocs.f5.com/api/irules/pool.html
But yes, for the rest it looks pretty good to me!
Coming back to the LTM policy though, this can also work with non-standard headers, see an example of it below. If you can do it that way, it will be less error-prone but also more efficient to run.