问题
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 accessible using cPanel?
回答1:
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
来源:https://stackoverflow.com/questions/16454841/how-to-change-context-path-of-tomcat