I've tried what you suggested, and my host is now:
<Host name="www.myurl.com" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path=""
docBase="E:/jakarta-tomcat-4.1.12/webapps/myapp"
debug="0"/>
</Host>
but this still brings me to the ROOT directory. If i
take out the /myapp from the docBase, then i get the
directory listing for / (all folders in webapps).
I can still get to the page by going to
www.myurl.com/myapp but i want to get to it by just
typing www.myurl.com
Thanks again,
--- Jens Skripczynski <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I belief your question is, how to link your webapp
> to '/'
> instead of '/webapp'.
>
> So you need to add an explicit context as default
> context.
> ----
> <Context path="" docBase="path-to-webapps"
> debug="0"/>
> ----
>
> Fiona:
> > I'm using Tomcat 4.1.12 and set up a virtual host
> in
> > my server.xml file.
> >
> > I want to be able to type the url www.myurl.com
> and
> > this to go to the equivalent of going directly to
> > localhost:8080/myapp. Currently www.myurl.com will
> > replace the localhost section, but i still have to
> put
> > the path of myapp after it to get to the page i
> want,
> > i.e. www.myurl.com/myapp works but www.myurl.com
> does
> > not.
> >
> > Here's the host that i added:
> >
> > <Host name="www.myurl.com" debug="0"
> appBase="webapps"
> > unpackWARs="true" autoDeploy="true">
> > <Context path="/myapp" docBase="myapp"
> debug="0"
> > reloadable="true" crossContext="true">
> > </Context>
> > </Host>
>
> Ciao
>
> Jens Skripczynski
> --
> E-Mail: skripi-lists(at)myrealbox(dot)com
>
> I think there is a world market for about five
> computers.
> -- Thomas J. Watson,
> CEO, IBM Corporation, 1947
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]