My setup: Apache 2.2 + Tomcat 6.0 @Windows 2008 R2 64bit
- static web pages: /
- servlet: / foo
- tomcat and apache linked mod_jk
- 404.jsp is placed in tomcat \ webapps \ ROOT
cat \ conf \ web.xml:
<error-page> <error-code>404</error-code> <location>/404.jsp</location> </error-page>
apache \ conf \ extra \ HTTPD-ssl.conf:
JkMount /foo/* worker1 JkMount /404.jsp worker1
When I open https: //...../404.jsp , my custom error page is displayed. But when I open https: //...../foo/nonexisting.html , a blank page is displayed.
If I remove the <error-page>...</error-page> code from web.xml and open https: //...../foo/nonexisting.html , then tomcats own 404 will be displayed.
Any clues?
tomcat custom-error-pages
Alexander
source share