tomcat的相关

针对tomcat修改,那么就直接找关于tomcat的相关文件目录进行修改即可

1、对tomcat进行相关的操作,启动tomcat时,让其不要出现tomcat主页,与之相反的让其出现404的界面!

  做法一:找到tomcat的目录,然后在apache-tomcat-7.0.62/webapps/ROOT,在找到index.jsp页面,直接将其干掉即可,在访问主页面的时候就会出现404;

如图所示:

  做法二:tomcat默认的web.xml中,没有welcome配置,也没有网页,那么与之访问就会出现404.

      在tomcat下的conf目录下,

  <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

  删除掉这些个内容即可;

 

posted @ 2016-06-28 17:43  FanSunny  阅读(109)  评论(0编辑  收藏  举报