How do I Configure a Custom Error Page in Apache Tomcat?
Issue
- How do I use a custom error page in a web app?
- How to configure general http error 404 and 500?
- Technical details are displayed when Exception occurs, which is not valuable to End User.
- How to handle the common errors like 404 and 500 in JBoss App Server?
- How to hide JBoss Web debug and trace output in browser window?
- I read the article https://access.redhat.com/solutions/18184, but I dont understand how to configure it once for all webapps. How can I replace the blank page for all my webapps by custom page in my root webapp ?
- Verbose error messages are enabled on the server. Verbose error messages often contain information which is useful to an attacker informing and refining attack strategies. So we need to configure custom error messages in JBoss. We are looking for a global solution as we have for EAP5.
Environment
- Red Hat JBoss Enterprise Web Server (JWS)
- Apache Tomcat
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.