You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Metal Gear <fi...@gmail.com> on 2005/04/12 13:03:27 UTC

Custom errors and banners problem

 Hi all,
- i m trying to change the banner string in tomcat (i.e. whenever someone 
telnets to the http port the fake banner comes up), how to do that as i 
tried to search in the source code of apache tomcat (5.0.28) but was unable 
to find that.

- Secondly i was trying to generate customized error pages i read lot of 
info from the web was also unable to do so. Following is the web.xml of the 
directory of webapps.


<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

*<error-page>
<error-code>404</error-code>
<location>/index.html</location>
</error-page>*

</web-app>