Elias_O_16228
Apr 22, 2013Nimbostratus
Redirecting request to different pools based on port number
I have two application servers as members to multiple pools. I currently created multiple VS with unique port service.
As you can see from example below, I would like users to be able to, lets say if in first url page (tuesday), click a link to "friday". It currently works as intended but I have to create VS for each port. I want to reduce the number of VS and conserve the IP addresses.
I am unable to test this because lack of testing environment. And as irule newbie, I dare not monkey with production network.
when HTTP_REQUEST {
switch -glob [HTTP::host] {
http://example.mtd.today.com:8088/tuesday/ { pool Stagin_Pool }
http://example.mtd.today.com:8089/wednesday/ { pool Management_Pool }
http://example.mtd.today.com:8090/thursday/ { pool Development_Pool }
http://example.mtd.today.com:8091/friday/ { pool Test_Lab_Pool }
default { pool Production_Pool }
}
}
Thanks for your help.