How to re-direct the default Tomcat home page
Sorry, this is a newbie question. I am using Tomcat 5.0.x. on Linux. I'm having problems redirecting to my webapps home page from the default Tomcat home page ($CATALINA_HOME/webapps/ROOT/index.jsp). Here's mywebapp.xml file that I placed in the $CATALINA_HOME/conf/Catalina/localhost dir: Context path= docBase=/home/mywebapp/mywebapp.war /Context As you can see, the path attribute is an empty string, and according to the Tomcat documentation, this should be the default web application. But instead, the tomcat default home page still appears. How to config the tomcat so that I can get my home page just by typing Http://localhost:8080? Do I have to explicitly undeploy the default tomcat app? Any clues? Thanks.
Re: How to re-direct the default Tomcat home page
Hi Ben Someone already reply to this question in the list very recently. In a nutshell, name your webapp ROOT and deploy it instead of the default ROOT one. However this is neither recommended or standard/good practice. Alternatively you could use apache with mod rewrite or create a servlet filter which you deploy in your ROOT webapp, from there you can do some URL manipulation. Search the list and wikis from jboss you will certainly find other options. Kind Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: Ben Wong [EMAIL PROTECTED] Sent: 11.09.2005 14:49 To: tomcat-user@jakarta.apache.org Subject: How to re-direct the default Tomcat home page Sorry, this is a newbie question. I am using Tomcat 5.0.x. on Linux. I'm having problems redirecting to my webapps home page from the default Tomcat home page ($CATALINA_HOME/webapps/ROOT/index.jsp). Here's mywebapp.xml file that I placed in the $CATALINA_HOME/conf/Catalina/localhost dir: Context path= docBase=/home/mywebapp/mywebapp.war /Context As you can see, the path attribute is an empty string, and according to the Tomcat documentation, this should be the default web application. But instead, the tomcat default home page still appears. How to config the tomcat so that I can get my home page just by typing Http://localhost:8080? Do I have to explicitly undeploy the default tomcat app? Any clues? Thanks. * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to re-direct the default Tomcat home page
From the tomcat wiki.. How do I override the default home page loaded by Tomcat? http://wiki.apache.org/jakarta-tomcat/HowTo#head-e82228c43a0ce77f71ebe64fc99ced33c9506ffe Bruno Georges wrote: Hi Ben Someone already reply to this question in the list very recently. In a nutshell, name your webapp ROOT and deploy it instead of the default ROOT one. However this is neither recommended or standard/good practice. Alternatively you could use apache with mod rewrite or create a servlet filter which you deploy in your ROOT webapp, from there you can do some URL manipulation. Search the list and wikis from jboss you will certainly find other options. Kind Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: Ben Wong [EMAIL PROTECTED] Sent: 11.09.2005 14:49 To: tomcat-user@jakarta.apache.org Subject: How to re-direct the default Tomcat home page Sorry, this is a newbie question. I am using Tomcat 5.0.x. on Linux. I'm having problems redirecting to my webapps home page from the default Tomcat home page ($CATALINA_HOME/webapps/ROOT/index.jsp). Here's mywebapp.xml file that I placed in the $CATALINA_HOME/conf/Catalina/localhost dir: Context path= docBase=/home/mywebapp/mywebapp.war /Context As you can see, the path attribute is an empty string, and according to the Tomcat documentation, this should be the default web application. But instead, the tomcat default home page still appears. How to config the tomcat so that I can get my home page just by typing Http://localhost:8080? Do I have to explicitly undeploy the default tomcat app? Any clues? Thanks. * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]