Forum Discussion
JWhitesPro_1928
Cirrostratus
Oct 03, 2016Best way to rewrite and choose different pool at same time
What would be the best method to achieve the following:
If incoming url starts with "/test" replace /test with just "/" and choose pool "test"
I've done some of my other pool selection wit...
Vernon_97235
Oct 03, 2016Historic F5 Account
when HTTP_REQUEST {
if { [HTTP::path] equals "/test" } {
HTTP::path "/"
pool test
}
}
This will match exactly (and only) /test and nothing else.
JWhitesPro_1928
Cirrostratus
Oct 04, 2016I will test this but will it effectively just remove the /test so that if a user goes to:
myserver.com/test/documents/clinton.pdf that it would rewrite it to just /documents/clinton.pdf because that is what the backend pool server would be expecting (it wouldn't have a path for /test)
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