我的設置:Apache的2.2 + Tomcat的6.0 @的Windows 2008 R2 64位空頁,而不是自定義Tomcat的錯誤頁面
- 靜態網頁:/
- 的servlet:/富
- 的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 \額外\的httpd-ssl.conf中:
JkMount /foo/* worker1
JkMount /404.jsp worker1
當我打開https://...../404.jsp顯示我的自定義錯誤頁。 但是當我打開https://...../foo/nonexisting.html時,會顯示一個空白頁面。
如果我從web.xml中刪除<error-page>...</error-page>
代碼並打開https://...../foo/nonexisting.html,那麼將顯示tomcats自己的404。
任何提示?
以下行?你必須誤解我的問題 – Alexander 2010-12-03 11:17:44