Forum Discussion
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
- Eric_St__John
Employee
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
- Kevin_Stewart
Employee
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.
Recent Discussions
Related Content
* 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