Forum Discussion
Bob_10976
Nimbostratus
Jul 12, 2010iRule to use specific server based on URL/URI request
Hello all..
When the request for https://hostdomain.com/project is requested I need to go direct and only one of the nodes in the assoicated pool. I can't have any other request go to this ...
hoolio
Cirrostratus
Jul 13, 2010Hi Bob,
It might be easiest to create two pools: one for /project and the other for all other requests. You could then use an HTTP class which filters on URIs of /project and uses the project_pool. You can create a second HTTP class with no filters that uses the default_pool.
If you're on 9.3 or lower and don't have ASM licensed, you'd need to use an iRule to do this:
when HTTP_REQUEST {
Check the requested path with wildcard matching
switch -glob [HTTP::path] {
"/project*" {
/project URI
pool project_pool
}
default {
non-/project URI
pool default_pool
}
}
}
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects