Forum Discussion
Kevin_Smith_01_
Nimbostratus
Aug 22, 2013Use a wildcard to redirect traffic
I want to redirect traffic to different servers depending on text in the URL after the domain name. We want the same domain name for multiple applications that run on different servers. So for exampl...
The_Bhattman
Nimbostratus
Aug 22, 2013Hi Kevin Smith 01, You can do this by the following example
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/123"-"/456" { pool pool_server1_server2 }
default { pool pool_server3_server4 }
}
}
I hope this helps
-=Bhattman=-
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