find list of sites with tomcat enabled on cpanel server

From WebHostingNeeds.com
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'
/usr/local/jakarta/apache-tomcat-5.5.25/conf/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="hostonnet.com" appBase="/home/hoston/public_html">
  <Alias>www.hostonnet.com</Alias>
  <Context path="" reloadable="true" docBase="/home/hoston/public_html" debug="1"/>
  <Context path="/manager" debug="0" privileged="true"
      docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
  </Context>
</Host>