I got it working with 3.2. I have two virtual hosts working on one tomcat instance.
request.getServerName() gets me the url name
Thanks,
Jayesh
-----Original Message-----
From: Filip Hanik [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, December 14, 2000 4:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Virtual hosting
I'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 <mailto:[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED]' <mailto:'[EMAIL PROTECTED]'>
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
