Directing traffic based on query parameter
We need the ability to direct traffic to a specific node on our LTM load balancers based on query parameter.
So for instance if I enter www.foo.com/some-article?s=web-server1 the request would get sent to web-server1, likewise if I were to access www.foo.com/myarticle.php?s=web-server2 the request would get sent to web-server2.
I found something very close here: https://devcentral.f5.com/wiki/iRules.Select_pool_member_based_on_HTTP_query_string_parameter.ashx
The issue is that this selects the 0th, 1st, 2nd, Nth pool member from the active members of a pool but we want to use the server name not member number. So for instance my member servers may be called web-server5, web-server6, web-server7, web-server8
Its un-intuitive to call member=1 and expect to get web server five. You'd expect if ?member=1 then you'd get web-server1 (even though web-server5 is the first in this pool.) Is there some way to call the node name specifically instead of the member number?
Thanks Brad