tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angelov, Rossen" <Rossen.Ange...@SourceMedia.com>
Subject RE: How set a default context
Date Tue, 26 Sep 2006 18:58:29 GMT
I know two ways to define a default context in Tomcat:

- a Context that has an empty PATH attribute will become the default web
application for the virtual host. This definitely works on Tomcat 5.5
- DefaultContext element in the Host is the other way to define a
default context, but this may work only on Tomcat 5.0

Ross

-----Original Message-----
From: Ivan Balashov [mailto:ibalashov@gmail.com]
Sent: Tuesday, September 26, 2006 1:08 PM
To: 'Tomcat Users List'
Subject: RE: How set a default context



I think it should be configurable from somewhere. Moving directories or
writing some custom apps for this IMHHHHHo is not quite right.

-Ivan

-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Tuesday, September 26, 2006 11:54 AM
To: Tomcat Users List
Subject: Re: How set a default context

Ivan Balashov wrote:
> But that means the context of application will change, as opposed to
making
> it default. I'm not sure if this change is harmful to the application,
but
> if it uses e.g. context name for some reason it might be failing.
> 
> -Ivan

If this is the case then you have a badly written application. In the
short term you can try putting a simple ROOT app that just redirects
to your app .

Mark

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

"This communication is intended solely for the addressee and is confidential and not for third
party unauthorized distribution"

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


Mime
View raw message