Archive for March 10th, 2010

How to start Tomcat as a daemon in Linux ?

Mar-10th-2010

Hi, We can start Tomcat as a service or as a daemon in Linux by some tricks…. [root@map007]# ln -s /usr/local/tomcat/bin/catalina.sh /etc/rc.d/init.d/tomcat And then based on the runlevel, you can create the Sxx and Kxx links in the appropriate directory.. ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc3.d/S63tomcat ln -s /etc/rc.d/init.d/tomcat /etc/rc.d/rc3.d/K37tomcat (change S63 and K37 according to your [...]

Virtual Hosting on Tomcat ………!!!

Mar-10th-2010

Hi, You can easily host multiple websites under single tomcat (virtual host) with the help of server.xml file… [root@map007]# vi /usr/local/tomcat/conf/server.xml ========================================================= < Host name="linuxsurgeon.com" appBase="/home/linux/public_html" > < Alias>www.linuxsurgeon.com < Context path="" reloadable="true" docBase="/home/linux/public_html" debug="1"/ > < Context path="/manager" debug="0" privileged="true" > < docBase="/usr/local/jakarta/tomcat/server/webapps/manager" > < /Context > < /Host>