私の設定:Apache 2.2 + Tomcat 6.0 @ Windows 2008R264ビット
- 静的ウェブページ:/
- サーブレット:/ foo
- tomcatとapacheはmod_jkで接続されています
- 404.jspはtomcat\webapps\ROOTに配置されます
tomcat \ 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
https://...../404.jspを開くと、カスタムエラーページが表示されます。しかし、https://...../foo/nonexisting.htmlを開くと、空のページが表示されます。
<error-page>...</error-page>
web.xmlからコードを削除してhttps://...../ foo / nonexisting.htmlを開くと、tomcats独自の404が表示されます。
ヒントはありますか?