tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jhayden <ja...@hayden1.fsnet.co.uk>
Subject Re: Using own index.html in $CATALINA_HOME/webapps/ROOT directory
Date Thu, 13 Sep 2007 18:15:21 GMT

I ended up uninstalling tomcat and then reinstalling it.
It works fine now.........Very odd. Thanks for you help.


Victor Lutin wrote:
> 
> Hi,
> 
> 	Well, what web.xml file you modified?
> 
> CATALINA_HOME = C:\Program Files\Apache Software Foundation\Tomcat 6.0\
> 
> 	1. %CATALINA_HOME%/conf/web.xml
> 	2. %CATALINA_HOME%/webapps/ROOT/WEB-INF/web.xml
> 
> 	I have Tomcat 6 installed, i tried to do that, and works for me, You  
> most comment web.xml in opction 1. and verify web.xml in option 2 for  
> <welcome-file>.
> 
> 	I got 404 error when I put a URL like this on my browser: (8180 is  
> my port for tomcat)
> 
> 		http://localhost:8180/ROOT/
> 	but with
> 		http://localhost:8180
> 
> 	loads my new Index.html.
> 
> VL.
> 
> 	
> 
> On Aug 31, 2007, at 4:10 AM, jhayden wrote:
> 
>>
>> After changing port to 80 attempting to use Tomcat as a HTTP server  
>> as well
>> as
>> a container.
>> When entering http:\\localhost I am getting the standard Tomcat  
>> display.
>> However its being drawn from the index.jsp rather than the  
>> index.html due
>> the message on the page detailing
>> "$CATALINA_HOME/webapps/ROOT/index.jsp"
>>
>> What I have attempted to do is place my own static html files in the
>> C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT
>> directory.
>> Basically expecting my index.html to be displayed. However it only  
>> attempts
>> to display the index.jsp page.
>>
>> I have tried commenting out the - <welcome-file>index.jsp</welcome- 
>> file>
>> from the web.xml but this does not make any difference.
>> I want to use the ROOT directory and force the index.html to be used.
>> All i get is a Error 404 message.
>> Can anyone help me please?
>>
>> -- 
>> View this message in context: http://www.nabble.com/Using-own- 
>> index.html-in-%24CATALINA_HOME-webapps-ROOT-directory- 
>> tf4359312.html#a12423852
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Using-own-index.html-in-%24CATALINA_HOME-webapps-ROOT-directory-tf4359312.html#a12660513
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Mime
View raw message