tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Alias URL
Date Mon, 05 Oct 2009 22:05:59 GMT
> From: André Warnier [mailto:aw@ice-sa.com]
> Subject: Re: Alias URL
> 
> (stop Tomcat first)
> 
> Step 1 : you will need 2 <Host ..> sections in Tomcat's configuration
> file "server.xml".  Currently, there is only one.

Actually, the one will suffice, if the OP is willing to eliminate Tomcat's existing ROOT webapp
(no big loss).

> That's basically all it takes to create a new "virtual host" (or "site"
> in MS parlance) into Tomcat.

However, a second <Host> is not needed - unless one has multiple domain names and wants
a different default webapp for each.

> - you currently have a ../webapps/ directory under Tomcat.  At the same
> level, create a directory .../webapps2/ .

Again, not needed if it's o.k. to eliminate the original ROOT webapp and there's only one
default webapp.

> Stop Tomcat. Rename /webapps2/webtop/ to /webapps2/ROOT/,
> and restart Tomcat.

This is the critical step: the easiest way to specify a default webapp is to name it ROOT.
 Again, if only one <Host> element is needed, the above line would use "webapps" (or
whatever the <Host> appBase specifies), not "webapps2".

 - Chuck


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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message