You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by tadamski <th...@gmail.com> on 2008/02/07 20:38:48 UTC
tomcat 5.5.9 aliases
Is it possible to give an alias to an application like you can with a
servlet? I have a war named myWar-1.2.3.4.war located in my webapps
directory. In my web.xml within the war directory WEB-INF/web.xml I have
the servlet appropriately mapped to '/'.
All that said (and hopefully understood) above I can access the servlet @
http://localhost/myWar-1.2.3.4/ now my question is, is there a way to give
that war an alias so I can access is @ http://localhost/alias/
I would like to maintain the name and version number on the actual war file,
but just exclude it from the url.
Thank You,
tadamski
--
View this message in context: http://www.nabble.com/tomcat-5.5.9-aliases-tp15341478p15341478.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
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
Re: tomcat 5.5.9 aliases
Posted by tadamski <th...@gmail.com>.
Thank you very much, that did the trick.
--
View this message in context: http://www.nabble.com/tomcat-5.5.9-aliases-tp15341478p15363120.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
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
RE: tomcat 5.5.9 aliases
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: tadamski [mailto:thadamski@gmail.com]
> Subject: tomcat 5.5.9 aliases
>
> I would like to maintain the name and version number on the
> actual war file, but just exclude it from the url.
Keep the webapp outside of the Tomcat directory structure so Tomcat
won't automatically deploy it under the name of the .war file. Then,
create the file conf/Catalina/[host]/[alias].xml containing a <Context>
element with a docBase attribute pointing to the absolute location of
the webapp. This will let you reference the webapp by whatever you use
for [alias].
- Chuck
P.S. You might want to upgrade to a later version of 5.5 - lots of
fixes have gone in since then.
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
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