tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabbah" <gab...@swipnet.se>
Subject Re: where do I define what web app will be used?
Date Sat, 13 Oct 2001 21:48:33 GMT
I have
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true">
and now I have changed
<Context path="" docBase="ROOT" debug="0"/>
into
<Context path="" docBase="/myapp" debug="0"/>
in the server.xml file.

The myapp folder is empty, and when I check http://localhost (I have changed
to port 80)
it's showing the index page of ROOT. It should be showing a 404 not found
shouldn't it?

I have restarted tomcat. Do I have to compile anything or so? I have Ant
installed and I have
made all the enviroment vars settings...
What must I do?

/Gabbah

----- Original Message -----
From: "Ylan Segal" <ylan@digiworks.tv>
To: <tomcat-user@jakarta.apache.org>
Sent: Saturday, October 13, 2001 8:02 PM
Subject: RE: where do I define what web app will be used?


> just define a new context in the server.xml file.. something like:
>
> ...
> <Context path="" docBase="webapps/MyApp"/>
> ...
>
> Ylan.
>
> > -----Original Message-----
> > From: Gabbah [mailto:gabbek@swipnet.se]
> > Sent: Saturday, October 13, 2001 11:22 AM
> > To: tomcat-user@jakarta.apache.org; mini78@lycos.com
> > Subject: Re: where do I define what web app will be used?
> >
> >
> >
> > ----- Original Message -----
> > From: "The Duke" <mini78@lycos.com>
> > To: "tomcat" <tomcat-user@jakarta.apache.org>;
> > <tomcat-user@jakarta.apache.org>
> > Sent: Saturday, October 13, 2001 5:45 PM
> > Subject: Re: where do I define what web app will be used?
> >
> >
> > > On Sat, 13 Oct 2001 16:32:14
> > >  Gabbah wrote:
> > > >Under the catalouge "webapps" I can put my web applications,
> > but how does
> > > >tomcat know
> > > >which of them is to be used when a user goes to my homepage?
> > > >Right now it seems to be a catalouge named "ROOT". Where can I change
> > this?
> > > >
> > > >/Gabbah
> > > >
> > > >
> > >
> > > The ROOT directory is called when you insert the for example
> > the following
> > location : http://localhost:8080/
> > > If you type : http://localhost:8080/examples you get the examples
> > application. If you create a directory MyApp and configure it in the
> > server.xml you can reach your site with http://localhost:8080/MyApp
> > >
> > > Dennis
> > >
> >
> > And if I want the http://localhost:8080/ to point to MyApp? And not let
a
> > user that is surfing my site to
> > be able to reach examples or any other folder that are not under MyApp?
> > It really sucks if I must define my homepage as http://<myip>/MyApp...
> >
> >
> > > Make a difference, help support the relief efforts in the U.S.
> > > http://clubs.lycos.com/live/events/september11.asp
> >
> >


Mime
View raw message