Forum Discussion
Victor_4983
Nimbostratus
Sep 15, 2015Removing Start Path of URI and direct to pool
Hi.
I am trying to remove part of the URI Path ($Path2), and pass the $Subpaths to a specific pool
http://example.com/$Path2/$Subpath1,$Subpath2 - (Remove $Path2 & pass $Subpaths through)
...
Stanislas_Piro2
Cumulonimbus
Sep 15, 2015Try this:
when HTTP_REQUEST {
Check the requested HTTP path
switch -glob [string tolower [HTTP::path]] {
"/path1/*" {
pool pool1
HTTP::path string map "/path1/ /" [HTTP::path]]
}
"/path2/*" {
pool pool2
HTTP::path string map "/path2/ /" [HTTP::path]]
}
default {
o nothing
}
}
}
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