Forum Discussion
Joe_Curl_105786
Nimbostratus
16 years agoMultiple Web Pages on single server
I have a case where I have two web pages that are hosted on the same web server. The first application is /index.jsp, and the second is /pkl/index.jsp. I am trying to figure out how to get the traff...
L4L7_53191
Nimbostratus
16 years agoJoe: 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