For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

thashack00_9151's avatar
thashack00_9151
Historic F5 Account
Nov 27, 2013

Redirect to Selected App Pool

I am running into an issue with the following iRule. I use this iRule to direct certain pieces of my application to respond on designated app pools. I use data groups to designate the URI or pattern and app pool combination to feed into this iRule. However a new piece of software doesn't seem to behave properly with this. I have DG list to send all traffic from /QvXXXXxx to a particular pool. When the redirect happens, it redirects to the designated default pool and not the proper pool. If I set a direct VIP/Pool relationship the app responds properly. Any thoughts on why this won't work? The application in question is QlikView.

when HTTP_REQUEST {
            set app_pool [class match -value [string tolower [HTTP::uri]] starts_with test_dg]
            if {$app_pool ne ""} {
                            log local0. "Request [HTTP::uri] selected $app_pool pool"
                            pool $app_pool
            }
            else {
                            set app_pool_pattern [class match -value [string tolower [HTTP::uri]] contains testnj_pattern_dg]
                            if {$app_pool_pattern ne ""} {
                                            log local0. "Request [HTTP::uri] selected $app_pool pool"
                                            pool $app_pool_pattern
                            }
                            else {
                                            log local0. "Failed to match [HTTP::uri] selecting default"
                                            pool test_default_http_pool
                            }
            }
    }

2 Replies

  • Do you have a oneconnect profile assigned to the Virtual Server? To get this configuration to behave in the way that you describe, you must have a oneconnect profile assigned.

     

    A good write-up by Deb Allen on this: Here

     

    Regards, Eric

     

  • Any chance that your data group entry for this new app URI is not all lowercase? I would also throw in some additional logging to see when and where requests fall out of the logic.