change apache tomcat homepage URL

1.4k views Asked by At

I need to change the default home page of apache tomcat 6 to ":port/login.html" which is currently comes as ":port/". This is required since my WLC redirects to a specific URL. Please help..

1

There are 1 answers

0
Daniel Mikusa On

The first thing that comes to mind would be modifying the welcome-file-list in web.xml.

http://wiki.apache.org/tomcat/HowTo#How_do_I_override_the_default_home_page_loaded_by_Tomcat.3F

Another option would be to manually redirect in a Servlet or JSP.

request.sendRedirect('login.html');