how to change context path of tomcat?

前端 未结 1 513
执笔经年
执笔经年 2021-01-16 10:09

In netbeans I can right click on project name, select properties > run > and change the context path, how can I change the context path of the tomcat on my server which is

相关标签:
1条回答
  • 2021-01-16 10:39

    Add root.xml file in $CATALINA_BASE/conf/[enginename]/[hostname]/ and add this as :

     <Context 
       docBase="/opt/mywebapps/<yourApp>" 
       path="" 
       reloadable="true" 
      />
    

    For more detail you can use the Apache context configuration link : http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

    0 讨论(0)
提交回复
热议问题