tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giorgio Ponza" <gior...@opla.it>
Subject Re: virtual hosts - tomcat 4
Date Tue, 10 Jun 2003 11:44:26 GMT
U can try

<Host name="www.myurl.com" debug="0" appBase="webapps/myapp"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="" debug="0"/>
</Host>

Giorgio

----- Original Message -----
From: "Fiona" <fiona_mck@yahoo.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>; "Jens
Skripczynski" <skripi-lists@myrealbox.com>
Sent: Tuesday, June 10, 2003 1:42 PM
Subject: Re: virtual hosts - tomcat 4


> 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 <skripi-lists@myrealbox.com>
> 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:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>



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


Mime
View raw message