Default page under tomcat6

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.
sloubi [ Mo, 26 November 2007 17:41 ] [ ID #1879060 ]

Re: Default page under tomcat6

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 <context> section like this:
<Context path="" docBase="youApp">

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.
sloubi [ Mo, 26 November 2007 18:18 ] [ ID #1879061 ]
Webserver » alt.apache.configuration » Default page under tomcat6

Vorheriges Thema: Problems with editing pages and setting up
Nächstes Thema: [STAT] Statistics of alt.apache.configuration 11/26/07