How to change the ROOT application?

后端 未结 13 1547
终归单人心
终归单人心 2020-11-22 16:16

I\'m trying to change the default application of a Tomcat 6 webserver to a different application than \"ROOT\" (inside webapps folder). What is the best way to do this?

13条回答
  •  生来不讨喜
    2020-11-22 16:28

    I'll look at my docs; there's a way of specifying a configuration to change the path of the root web application away from ROOT (or ROOT.war), but it seems to have changed between Tomcat 5 and 6.

    Found this:

    http://www.nabble.com/Re:-Tomcat-6-and-ROOT-application...-td20017401.html

    So, it seems that changing the root path (in ROOT.xml) is possible, but a bit broken -- you need to move your WAR outside of the auto-deployment directory. Mind if I ask why just renaming your file to ROOT.war isn't a workable solution?

提交回复
热议问题