tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Is there such thing as an "alias" context?
Date Tue, 27 Jan 2004 16:39:27 GMT


>The way that we are currently doing this is to set the docBase
>of the "alias" context to the docBase of the "concrete".  For example:
>    <Context path="/concrete" docBase="/app/webroot" />
>    <Context path="/alias"    docBase="/app/webroot" />
>I don't like this approach as if we move the docBase of the concrete
>context, we need to update the docBase of the alias context.  I would


>I also know that this could be done using an actual web application
>a single servlet that redirects all requests to the other context.


>However, that requires creation and maintenance.  If this could be done
>with a configuration setting that would be good.

Maybe.  Feel free to contribute a patch: it will be reviewed.

>I haven't been able to find anything about redirects or aliases in the
>tomcat 5 documentation.  Is there such a feature?

No.  A search of this list's archives will show that you're not the only
person to have asked this, and solutions have been discussed including a
small webapp with one servlet of filter as you describe, and Apache's

Yoav Shapira

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message