+ Reply to Thread
Results 1 to 1 of 1
Thread: Activate tomcat for a domain
-
Administrator
- Join Date
- Jul 2006
- Posts
- 94
Activate tomcat for a domain
Guys,
Please follow the steps below to enable tomcat for a domain
To enable tomcat for a domain, you have to add the following lines inside the virtual-host directive of the particular domain.
<IfModule mod_jk.c>
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /servlets/* ajp13
</IfModule>
And you have to add the following line in /usr/local/jakarta/jakarta-tomcat-x.x.x/conf/server.xml.
eg:-
Code:
<Host name="domainname.com" appBase="/home/username/public_html">
<Context path="" reloadable="true" docBase="/home/username/public_html" debug="1"/>
</Host>
To restart Tomcat:
First go to the following directory,
/usr/local/jakarta/jakarta-tomcat-x.x.x/bin
./startup.sh
Logs:
Add the jsp file in /home/username/public_html/
Please check the tomcat logs to make sure that it has been started fine. Please tail logs/catalina.out.


LinkBack URL
About LinkBacks



Reply With Quote