Tomcat6 -> how to put a project into the root folder?

前端 未结 1 1468
耶瑟儿~
耶瑟儿~ 2021-01-14 07:29

I have a Tomcat6 server on a Linux server. The structure of the webapps directory is:

  • examples
  • host-manager
  • manager
  • ROO
相关标签:
1条回答
  • 2021-01-14 07:56

    Delete ROOT folder, rename MyProject.war to ROOT.war and restart.

    You can also do it by adding the following line to inside the <Host> entry of /conf/server.xml

    <Context docBase="MyProject" path="" />
    
    0 讨论(0)
提交回复
热议问题