Sharing the Point

Office 365, SharePoint, Project Server – Support Blog

How to Configure Tomcat 6 – Custom Default Pages

Posted by Ashraf on December 1, 2010

Tomcat uses the same convention as the Apache Web Server in that index.html is

the default or home page of any directory. Sometimes you may want to change that

to homepage.html or maybe a JSP page, like home.jsp.

To do that, simply open the web.xml of your web application, and add the

following lines without commenting :

<welcome-file-list>

<welcome-file>home.jsp</welcome-file>

<welcome-file>homepage.html</welcome-file>

<welcome-file>index.html</welcome-file>

</welcome-file-list>

To change it system-wide, edit the global web.xml in $CATALINA_HOME/conf, and

change the to point to the file of your choice.

Advertisements

Sorry, the comment form is closed at this time.

 
%d bloggers like this: