标签:
1. 进入tomcat lib目录
cd /usr/local/tomcat7/lib
2. 解压catalina.jar
jar xvf catalina.jar
3. 修改ServerInfo.properteis文件
vi org/apache/catalina/util/ServerInfo.properties 内容: server.info=Apache Tomcat server.number= server.built=Jul 2 2013 08:57:41
4. 将ServerInfo.properties打入jar包
jar uvf catalina.jar org/apache/catalina/util/ServerInfo.properties
5. 重启tomcat.
How to Hide Apache Tomcat Version Number from Error Pages
标签:
原文地址:http://www.cnblogs.com/hzm112567/p/4511987.html