tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Purcell" <spurc...@vertisinc.com>
Subject RE: default webapp not understanding
Date Tue, 14 Feb 2006 17:11:07 GMT
Sorry, I didn't catch the other one.

Tomcat 5.5x on xp

If I deploy the webapp in ROOT, then the structure would look like this:
$TOMCAT_HOME/webapps/root/mywebapp. 
And the index.html would still live in root .. isn't that correct. So I
would still need a way to go from the root/index.html to the
mywebapp/index.html correct?

This is where it gets confusing.



Thanks,

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Tuesday, February 14, 2006 10:46 AM
To: Tomcat Users List
Subject: RE: default webapp not understanding

> From: Scott Purcell [mailto:spurcell@vertisinc.com] 
> Subject: default webapp not understanding
> 
> I am having trouble understanding what is meant by the default webapp.

(It would help if you'd tell us what Tomcat level you're running...)

For 5.5.x, the default webapp is the one located in webapps/ROOT.war or
the webapps/ROOT directory.

> Can I somehow configure this to go to the above
> $TOMCAT_HOME/webapps/mywebapp/index.html?

Deploy your webapp in webapps/ROOT, not webapps/mywebapp.

> I get confused when the doc states that the entry in the host 
> must also have a context entry? Can anyone clarify that.

Where does it say that?  The current doc states that you _can_ nest
<Context> tags inside <Host>, not that you must.  Putting <Context> tags
in server.xml is strongly discouraged these days, but not all of the doc
has caught up to that fact.

> Here from the docs
> 
> Exactly one of the Hosts associated with each Engine MUST have a name
> matching the defaultHost attribute of that Engine.

That attribute for simple Tomcat installations is "localhost", which you
already have.  Nothing to do with contexts.

 - 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


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


Mime
View raw message