Forum Discussion
Samuel_Neff_133
Nimbostratus
Dec 22, 2014Need Direction - URI Rewrite + Pool Selection
I have been asked to see if the F5 can accomplish a few things. And I need some direction.
1. We have an in-house application that runs on a pair of webservers, we want users to have one url to use ...
Brad_Parker
Cirrus
Dec 22, 2014This could accomplish your goal:
when HTTP_REQUEST {
Check URI set to lower case with wildcard matching
log local0. "Requested hostname: [HTTP::host] from IP: [IP::local_addr] and URI: [HTTP::uri]"
switch -glob [string tolower [HTTP::uri]] {
"/raloh*" {
HTTP::uri "/UI/Portal"
pool pool_WES-PROD-http-8080
}
"/mumrah*" {
HTTP::uri "/UI/Portal"
pool pool_WES-PROD-http-8081
}
default {
pool pool_WES-PROD-http-8081
}
}
}
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