Default page under tomcat6

Default page under tomcat6

am 26.11.2007 17:41:37 von sloubi

Hi,
This simple "pb" is driving me crazy (I've typped this mail with my noze)

Installed on Linux romcat6.0.

When I type http://localhost:8080/, this is the welcome webapp (ROOT)
that appears.
But I simply want to have my own webapp instead, without:
- replacing the webapps/ROOT directory (not really clean)
- using a dirty redirection inside ROOT (via a index.html for ex.)

For now, to have my work, I have to type:
http://localhost:8080/mywebapp

This should be the most simple thing in the world, but appache doesn't
write a word about this.

Thanks by advance.

Francillo.

Re: Default page under tomcat6

am 26.11.2007 18:18:24 von sloubi

Ok, I found it, forget it.
For those who are interrested, you have:
- to edit the file $CATALINA_HOME/conf/server.xml
- locate the Host section (at the end of the file)
- inside, you have to hade a section like this:


A void path means that this is the default application for your host. If
you dont know that, .... like, me, you spend a lot of time.
docBase is the name of your application. Because there is no "/" before,
it's relative to the "webapps" dir (or the one define for your host).

Francillo

sloubi a écrit :
> Hi,
> This simple "pb" is driving me crazy (I've typped this mail with my noze)
>
> Installed on Linux romcat6.0.
>
> When I type http://localhost:8080/, this is the welcome webapp (ROOT)
> that appears.
> But I simply want to have my own webapp instead, without:
> - replacing the webapps/ROOT directory (not really clean)
> - using a dirty redirection inside ROOT (via a index.html for ex.)
>
> For now, to have my work, I have to type:
> http://localhost:8080/mywebapp
>
> This should be the most simple thing in the world, but appache doesn't
> write a word about this.
>
> Thanks by advance.
>
> Francillo.