How to set the context path of a web application in Tomcat 7.0

后端 未结 13 1331
傲寒
傲寒 2020-11-21 23:34

I know that I can rename my webapp (or it\'s WAR file) to ROOT but this is a terrible way to do it, IMHO. Now I checked out the tomcat doc & it says

13条回答
  •  独厮守ぢ
    2020-11-21 23:50

    Here follows the only solutions that worked for me. Add this to the Host node in the conf/server.xml

    
    
      
      WEB-INF/web.xml
    
    
    

    go to Tomcat server.xml file and set path blank

提交回复
热议问题