How to change the ROOT application?

后端 未结 13 1329
终归单人心
终归单人心 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:52

    ROOT default app is usually Tomcat Manager - which can be useful so I felt like keeping it around.

    So the way i made my app ROOT and kept TCmgr was like this.

    renamed ROOT to something else

    mv ROOT TCmgr
    

    then created a symbolic link whereby ROOT points to the app i want to make the default.

    ln -s  ROOT
    

    worked for me and seemed the easiest approach.

提交回复
热议问题