Forum Discussion
Elias_O_16228
Nimbostratus
Apr 22, 2013Redirecting request based on port number
I have two application servers as pool members to multiple pools. I want to be able to load balance based on port.
For example, If a user click first link, load balance staging pool. If user is...
Elias_O_16228
Nimbostratus
Apr 26, 2013I took out the [HTTP::host] evaluation. Then put wildcard immediately after port "8088*" to evaluate everything after the port,
e.g. example.mtd.today.com:8088/tuesday/calendar/student/file/
e.g. example.mtd.today.com:8089/wednesday/journal/teachers/data/
e.g. example.mtd.today.com:8090/thursday/classes/schedule/courses/
I need to figure out how to evaulate lower and upper cases when evalauting URI,
e.g. example.mtd.today.com:8088/TUESDAY/calendar/student/file/
I am getting undefined "default" error.
when HTTP_REQUEST {
switch -glob "[TCP::local_port][string tolower [HTTP::uri]]" {
"8088*" { pool Stagin_Pool }
"8089*" { pool Management_Pool }
"8090*" { pool Development_Pool }
"8091*" { pool Test_Lab_Pool }
default { pool Production_Pool }
}
}
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