Forum Discussion
VGF5
Cumulonimbus
Jun 12, 2017Route the traffic to specific context path on back end server
Hi,
VIP on 443. Servers on 7443 and 6443. Monitor tcp for servers.
I need like when user request for
https://..com//home/ they need to connect 7443
https://..com//rest connect to 6443 ...
Morten_Marstran
Nimbostratus
Jun 19, 2017Hi,
Lets say that in this example, your servers are located on two different pools; pool_6443 and pool_7443.
You can attach the following iRule to the VIP and it will do the job, although the code is a bit crude:
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] eq "/home" } {
pool pool_7443
}
else { [string tolower [HTTP::path]] eq "/rest" } {
pool pool_6443
}
}- VGF5Jun 19, 2017
Cumulonimbus
Thank you Morten Marstrander. It is working now.
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