大意是:由于现在的tomcat 401, 403, 404带有版本信息:Apache Tomcat/6.0.41。
想把版本信息删掉。
但是,改了web.xml 的:
<error-page>
<error-code>401</error-code>
<location>/WEB-INF/jsp/401.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/jsp/403.jsp</location>
</error-page>
为:
<error-page>
<error-code>401</error-code>
<location>/WEB-INF/401.html</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/403.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/404.html</location>
</error-page>
好像没有生效呢?
各位大牛看看?
谢谢
--
FROM 119.6.64.*