You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by flytoarun <fl...@yahoo.com> on 2008/08/17 20:36:54 UTC
How to change Default URL to point to my application index.html page
Hi All,
I am using tomcat 5 version and my application's default page is www.domain.com\myDir\index.html which works fine when i enter full path however when i enter www.domain.com then the tomcat default server page opens. I want to change this default page by my application index.html (Default page).
Can some one help me.
I have tried few things but didn't work. Like adding entries in server.xml and web.xml
Thanks in advance.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How to change Default URL to point to my application index.html page
Posted by Ken Bowen <kb...@als.com>.
If you are uploading your application (myapp) to Tomcat's webapps
folder as a war (myapp.war), do two things:
1. Delete webapps/ROOT ;
2. Rename myapp.war to ROOT.war (case is important), and then upload
it to webapps.
On Aug 17, 2008, at 2:36 PM, flytoarun wrote:
> Hi All,
>
> I am using tomcat 5 version and my application's default page is www.domain.com
> \myDir\index.html which works fine when i enter full path however
> when i enter www.domain.com then the tomcat default server page
> opens. I want to change this default page by my application
> index.html (Default page).
>
> Can some one help me.
>
> I have tried few things but didn't work. Like adding entries in
> server.xml and web.xml
>
> Thanks in advance.
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How to change Default URL to point to my application index.html page
Posted by Guojun Zhu <zg...@gmail.com>.
I am sorry. If there is no ROOT.xml, Tomcat will use the default and you
just need to do as Ken said. Or you can create the ROOT.xml in the
$Catalina.home/conf/Catalina/(your host)/ROOT.xml. Put <Context path=""
docBase="${catalina.home}/webapps/(your application path)"/> in the file.
On Sun, Aug 17, 2008 at 2:12 PM, flytoarun <fl...@yahoo.com> wrote:
> Hi Guojun,
>
> I have 2 files under path
> /apache-tomcat-5.5.25/conf/Catalina/localhost
> host-manager.xml
> manager.xml
>
> i don't have ROOT.xml.
>
>
>
>
> --- On Mon, 8/18/08, Guojun Zhu <zg...@gmail.com> wrote:
>
> > From: Guojun Zhu <zg...@gmail.com>
> > Subject: Re: How to change Default URL to point to my application
> index.html page
> > To: "Tomcat Users List" <us...@tomcat.apache.org>, flytoarun@yahoo.com
> > Date: Monday, August 18, 2008, 12:31 AM
> > you can change the $Catalina.home/conf/Catalina/(your
> > host)/ROOT.xml file to
> > direct to your webapp path instead of the ROOT.
> >
> > On Sun, Aug 17, 2008 at 1:36 PM, flytoarun
> > <fl...@yahoo.com> wrote:
> >
> > > Hi All,
> > >
> > > I am using tomcat 5 version and my application's
> > default page is
> > > www.domain.com\myDir\index.html which works
> > fine when i enter full path
> > > however when i enter www.domain.com then the tomcat
> > default server page
> > > opens. I want to change this default page by my
> > application index.html
> > > (Default page).
> > >
> > > Can some one help me.
> > >
> > > I have tried few things but didn't work. Like
> > adding entries in server.xml
> > > and web.xml
> > >
> > > Thanks in advance.
> > >
> > >
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To start a new topic, e-mail: users@tomcat.apache.org
> > > To unsubscribe, e-mail:
> > users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail:
> > users-help@tomcat.apache.org
> > >
> > >
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: How to change Default URL to point to my application index.html
page
Posted by André Warnier <aw...@ice-sa.com>.
Guojun Zhu wrote:
> you can change the $Catalina.home/conf/Catalina/(your host)/ROOT.xml file to
> direct to your webapp path instead of the ROOT.
Or, if I have correctly understood many previous posts to this forum,
you can delete the ROOT default application and put yours there instead.
A guru here can confirm that, I suppose.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How to change Default URL to point to my application index.html page
Posted by flytoarun <fl...@yahoo.com>.
Hi Guojun,
I have 2 files under path
/apache-tomcat-5.5.25/conf/Catalina/localhost
host-manager.xml
manager.xml
i don't have ROOT.xml.
--- On Mon, 8/18/08, Guojun Zhu <zg...@gmail.com> wrote:
> From: Guojun Zhu <zg...@gmail.com>
> Subject: Re: How to change Default URL to point to my application index.html page
> To: "Tomcat Users List" <us...@tomcat.apache.org>, flytoarun@yahoo.com
> Date: Monday, August 18, 2008, 12:31 AM
> you can change the $Catalina.home/conf/Catalina/(your
> host)/ROOT.xml file to
> direct to your webapp path instead of the ROOT.
>
> On Sun, Aug 17, 2008 at 1:36 PM, flytoarun
> <fl...@yahoo.com> wrote:
>
> > Hi All,
> >
> > I am using tomcat 5 version and my application's
> default page is
> > www.domain.com\myDir\index.html which works
> fine when i enter full path
> > however when i enter www.domain.com then the tomcat
> default server page
> > opens. I want to change this default page by my
> application index.html
> > (Default page).
> >
> > Can some one help me.
> >
> > I have tried few things but didn't work. Like
> adding entries in server.xml
> > and web.xml
> >
> > Thanks in advance.
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail:
> users-help@tomcat.apache.org
> >
> >
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: How to change Default URL to point to my application index.html page
Posted by Guojun Zhu <zg...@gmail.com>.
you can change the $Catalina.home/conf/Catalina/(your host)/ROOT.xml file to
direct to your webapp path instead of the ROOT.
On Sun, Aug 17, 2008 at 1:36 PM, flytoarun <fl...@yahoo.com> wrote:
> Hi All,
>
> I am using tomcat 5 version and my application's default page is
> www.domain.com\myDir\index.html which works fine when i enter full path
> however when i enter www.domain.com then the tomcat default server page
> opens. I want to change this default page by my application index.html
> (Default page).
>
> Can some one help me.
>
> I have tried few things but didn't work. Like adding entries in server.xml
> and web.xml
>
> Thanks in advance.
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>