Hassan,

Thanks for your reply. 

In production 2 projects are hosted on 2 different domain names and the host 
provider is using Apache Virtual Host I think. 

But, my problem only applies to the development envrionment. I tried to set up 
the virtual host on the dev machine by following instructions here:
http://confluence.atlassian.com/display/DOC/Guide+to+using+Apache+Tomcat's+Virtual+Hosts

This resulted in a virtual folder virtual.domainname.com under 
\dev\apache-tomcat-5.5.12\work\Catalina\ , but I wasn't able to access the 
application 
via http://virtual.domainname.com:8080/

It says "you need to have entries in your DNS server ", I guess I can't have 
this set up while on the local dev box.

The only reason why I set up both projects on the ROOT context is so that they 
can be accessed from http://localhost:8080/  and not 
http://localhost:8080/SomeContext/

I'm also using context relative URLs inside the application code that begin 
with / , they can't begin with /SomeContext/

I'm sorry if I'm wrong about setting up the virtual host on my local machine, 
but that's what I understand after reading the documentation above and here:
http://tomcat.apache.org/tomcat-5.0-doc/config/host.html


-Rashmi

----- Original Message ----
From: Hassan Schroeder <[EMAIL PROTECTED]>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Thursday, November 9, 2006 10:09:40 AM
Subject: Re: Switching between 2 projects, each setup at Tomcat's ROOT context 
deletes the source folder of the 2nd project.


On 11/9/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:
> I'm working on 2 different projects and I'm having problems while trying to 
> switch between 2 projects that are both set up at the ROOT context.

The first question is why they both have to be the ROOT context;
nevertheless, if there's a valid reason --

Create separate virtual hosts with unique AppBases and run each
project as ROOT in its own vhost. End of problem.

HTH!
-- 
Hassan Schroeder ------------------------ [EMAIL PROTECTED]

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to