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