We help IT Professionals succeed at work.

How to stop a web server from disclosing a stack trace

I have a web server running Apache Tomcat Coyote and I need to stop the server from providing a Stack Trace when requesting a non-existent service. The server has been tested and discloses information such as the application and OS information.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2010
Commented:
Just define a set of Error Pages in you webweb.xml, for the appropriate error codes: 403, 404, 501, 502, 503 e.g.

http://linux-sxs.org/internet_serving/c581.html#CUSTOM_ERROR_PAGES
http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q6

Explore More ContentExplore courses, solutions, and other research materials related to this topic.