Forum Discussion
Joe_Curl_105786
Nimbostratus
Aug 31, 2009Multiple 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
Aug 31, 2009Joe: 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
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
