You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Parayali, Jayesh 1065" <Ja...@acefis.com> on 2000/12/15 00:28:30 UTC

Virtual hosting

I have set up 2 virtual hosts on a server running tomcat 3.2 running one web
application.

now the question is how do I differentiate the requests coming from 2
different URLs

In other words, is the url name accessible within my JSP?

Thanks,
Jayesh


Re: Virtual hosting

Posted by Filip Hanik <fi...@filip.net>.
Virtual hostingI'm not sure if this feature is available in Tomcat 3.2
I know it was planned for release 4.
if it is not available - read the docs to find out - you can do this by placing apache in front of your tomcat server. and have apache handle the virtual hosts.
As of now, I believe you will have to have two tomcat servers, one for each virtual host. This will change soon though

Filip
  ----- Original Message ----- 
  From: Parayali, Jayesh 1065 
  To: 'tomcat-user@jakarta.apache.org' 
  Sent: Thursday, December 14, 2000 3:28 PM
  Subject: Virtual hosting


  I have set up 2 virtual hosts on a server running tomcat 3.2 running one web application. 

  now the question is how do I differentiate the requests coming from 2 different URLs 

  In other words, is the url name accessible within my JSP? 

  Thanks, 
  Jayesh