wkhastings

Registered
Jan 20, 2005
4
0
151
Hi,

What is the procedure for enabling Tomcat support for an addon domain. Tomcat is functional for the main domains, however, the jsptest.jsp page for the addon domain throws a 404 The requested resource (/jsptest.jsp) is not available error.

Thank you,
-Bill
 

wkhastings

Registered
Jan 20, 2005
4
0
151
I have added and verified that the entries in server.xml are present for the addon domain. The virtual host container for the parent domain is correct also.

Again, Tomcat is working for parent domain without a problem, it's the addon domains that it doesn't work for.

Thank you,
-Bill
 

Rajbir Singh

Registered
Jun 13, 2010
4
0
51
Nasik
If you want to enable Tomcat support for an addon domain then follow the below steps :

[email protected][#] cd /usr/local/jakarta/tomcat/conf/
[email protected][#] vi server.xml
Add these lines to the server.xml file :

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

Then restart the tomcat service.
 
Last edited: