1

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?

Ravi
  • 30,829
  • 42
  • 119
  • 173
J888
  • 1,944
  • 8
  • 42
  • 76

1 Answers1

3

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

Vaibhav Jain
  • 3,729
  • 3
  • 25
  • 42