find list of sites with tomcat enabled on cpanel server

Jump to: navigation, search

List of sites having tomcat/servlet installed on cpanel can be found by looking server.xml file

[email protected] [~]# find /usr -name 'server.xml'
[email protected] [~]#

On my server file is located at /usr/local/jakarta/apache-tomcat-5.5.25/conf/server.xml

At the end of the file, there will be entry for each site having tomcat enabled.

<Host name="" appBase="/home/hoston/public_html">
  <Context path="" reloadable="true" docBase="/home/hoston/public_html" debug="1"/>
  <Context path="/manager" debug="0" privileged="true"