Forum Discussion
sysadmin_209494
Nimbostratus
Jul 06, 2015New Application using different different backend applications with same URL
We have an application that has been running on Apache with a backend WebLogic instance.
The application URL for for example is https://application.abc.com
There are 2 Locations setup in Apach...
Kevin_Stewart
Employee
Jul 06, 2015Absolutely. Here's what the iRule might look like:
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/prod2*" { pool prod2_pool }
"/prod*" { pool prod_pool }
}
}
The important thing here is that you put the more specific entry first in the list. Starting with "/prod*" would match on everything. You'd then create two separate pools for your application servers.
You can also do the exact same thing with a traffic policy without touching iRules.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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