tottenc
May 21, 2010Nimbostratus
Question on Select_pool_member_based_on_ HTTP_query_string_parameter iRule
I'm new to iRules as well as the f5's, and I've been trying to use the functionality from the Select_pool_member_based_on_ HTTP_query_string_parameter I found on devcentral. I've changed it so that it uses the new 'members' method which gets all of the members of the pool regardless of status, and that is working perfectly. The problem I've run into however is that I have this setup on 2 virtual servers, one of which is for http and one is for https. The https virtual server is doing SSL offload so the pool that's associated with it is the same as what's setup in the http virtual server. When I browse to the site I can select the member that I want with the parameter, and the cookie persistence works correctly, however during the course of the website, there is a transition from http to https and this seems to cause the browser to detect that there is a redirection problem, and I get a browser error. If I remove the iRule from the https virtual server when I hit the transition I get loadbalanced as normal. I've verified this by disabling the second server in the pool, and specifying it as the member I want to hit, but when I get to the https part of the site, I can see that I've been sent back to the first server in the pool which is the active member. Anyone have any ideas on how I can maintain the persistence correctly from http to https?