zoukankan      html  css  js  c++  java
  • 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>
    

      删除掉这些个内容即可;

  • 相关阅读:
    正式班D25
    解决oracle用户锁定
    python学习第17天
    python学习第16天
    python学习第15天
    python学习第十四天
    python学习第13天
    Python基础
    python学习第12天
    python学习第11天
  • 原文地址:https://www.cnblogs.com/FanSunny/p/5624303.html
Copyright © 2011-2022 走看看