Map your context directly in server.xmls as follows

<Context path="" docBase="usr/local/tomcat/webapps/MYAPP" debug="0"/>

This will do what you want.
Donie


-----Original Message-----
From: Dan Lipofsky [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 21:21
To: Tomcat Users List
Subject: Re: Making a webapp the document root, help?

The webapp called "ROOT" has the behavior you desire.
Is it possible for you to just use that one?
I am afraid I don't know how to make something else
behave like "ROOT" or even if it is possible.
- Dan

> Is it possible, from Apache 1.3 and Tomcat 4.1.10
> (tied together w/ mod_jk)
> to make a webapp the top-level (DocumentRoot) ??
> For instance:
> /usr/local/tomcat/webapps/MYAPP
>
> I want MYAPP to be my document root and start serving
> JSPs immediately, only using Apache if a HTML file is
> requested and for htaccess (using mod_auth_db).
> I don't want to have to type into the browser:
> http://this.that.com/MYAPP
>
> I would like: http://this.that.com
> and have it simply use the MYAPP from this point on
> This doesn't work, b/c if I try to access a file:
> /usr/local/tomcat/webapps/MYAPP/jsp/myfile.jsp
> using the following URL:
> http://this.that.com/jsp/myfile.jsp
> I get a 404 error, thrown from Tomcat, b/c the server
> is apparently looking for that file somewhere else.
> Thoughts/help?
> Thanks,
> Paul



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to