Re: How to change Default URL to point to my application index.html page

2008-08-17 Thread Guojun Zhu
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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: How to change Default URL to point to my application index.html page

2008-08-17 Thread flytoarun
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 [EMAIL PROTECTED] wrote:

 From: Guojun Zhu [EMAIL PROTECTED]
 Subject: Re: How to change Default URL to point to my application index.html 
 page
 To: Tomcat Users List users@tomcat.apache.org, [EMAIL PROTECTED]
 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
 [EMAIL PROTECTED] 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:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


  

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to change Default URL to point to my application index.html page

2008-08-17 Thread André Warnier

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to change Default URL to point to my application index.html page

2008-08-17 Thread Ken Bowen
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to change Default URL to point to my application index.html page

2008-08-17 Thread Guojun Zhu
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] wrote:

  From: Guojun Zhu [EMAIL PROTECTED]
  Subject: Re: How to change Default URL to point to my application
 index.html page
  To: Tomcat Users List users@tomcat.apache.org, [EMAIL PROTECTED]
  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
  [EMAIL PROTECTED] 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:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]