Reputation: 1964
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?
Upvotes: 1
Views: 7346
Reputation: 3755
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
Upvotes: 3