Forum Discussion
L4L7_53191
Aug 31, 2009Nimbostratus
Joe: would it be enough to just switch on the HTTP::host portion of the request? If so, something like this may work for you:
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
site1.portal.hca.com { pool site1-pool }
iphone.portal.hca.com { pool iphone-pool }
default { pool default-pool }
}
}
If you need to manually add the "/pkl/" portion to the URI you can do that, but I'd bet that the application server will do that for you via a redirect. If you need help with the URIs please post back and we'll have a look at that option as well.
-Matt