How to change the ROOT application?

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

    I've got a problem when configured Tomcat' server.xml and added Context element. He just doesn't want to use my config: http://www.oreillynet.com/onjava/blog/2006/12/configuration_antipatterns_tom.html

    If you're in a Unix-like system:

    1. mv $CATALINA_HOME/webapps/ROOT $CATALINA_HOME/webapps/___ROOT
    2. ln -s $CATALINA_HOME/webapps/your_project $CATALINA_HOME/webapps/ROOT

    Done.

    Works for me.

提交回复
热议问题