You can try defining an Alias in httpd.conf file of Apache. I am not sure 
your JSP code will work but you can try.

Alias / /dir1/dir2/dir2/....../webapps/MYAPP

On the other hand you can have an 'index.html' filein the root directory 
and let users chose to get to your MYAPP.

-Sri

At 01:21 PM 9/25/2002 -0700, Dan Lipofsky wrote:
>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