Webhosting Blog

Enable Tomcat for addon domain


In order to enable tomcat support for an addon domain you can follow following steps:

1) Login to the server as root.

2) Go to directory /usr/local/jakarta/tomcat/conf.

[root@server~]#  cd /usr/local/jakarta/tomcat/conf/

3)Open the server.xml file and add following lines to the file.

[root@server~]# vi server.xml

<Host name=”test.com” appBase=”/home/username/public_html/test.com”>
<Alias>www.test.com</Alias>
<Context path=”” reloadable=”true” docBase=”/home/username/public_html/test.com” debug=”1?/>
<Context path=”/manager” debug=”0″ privileged=”true”
docBase=”/usr/local/jakarta/tomcat/server/webapps/manager”>
</Context>
</Host>

Save and Quit.

4) Now remove the domains entry from /etc/httpd/conf/httpd.conf.

5) Now restart the tomcat service & apache service.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s