Forum Discussion
Unixian_307588
Nimbostratus
Dec 07, 2018Port 80 vip redirect to pools and https
Hi Guys, I have the following challenge that I am trying to crack. VS with ip x.x.x.x is listening to port 80 I have multiple uri (XYZ) that i want to direct to different pools. And also have...
Kevin_Stewart
Employee
Dec 07, 2018Try this:
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"x.local.com" { pool Pool1 }
"y.local.com" { pool Pool2 }
"z.local.com" { pool Pool3 }
"a.local.com" -
"b.local.com" { HTTP::redirect "https://www.local.com" }
default { HTTP::redirect "https://www.local.com" }
}
}
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