|
||||||||||
|
|
Tomcat CPanel/Enable for a domainMarch 1, 2009 on 2:24 pm | In Cpanel | 1 CommentTo enable .jsp pages for a domain. /scripts/addservlets –domain=domain.com To disable /scripts/remservelets –domain=domain.com In some cases, these scripts won’t work. Manually check the setting for the domain. Open up the Apache conf /usr/local/apache/conf/httpd.conf check if the directive given below in the virtual host entry of domain, if not add it. Include “/usr/local/apache/conf/userdata/std/2/username/domainname/*.conf” Now navigate to the directory cd /usr/local/apache/conf/userdata/std/2/ If the directory “domainname” is not present, create it Check for the file cp_jkmount.conf here, if it is not present, create it with the following contents <IfModule mod_jk.c> JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 JkMount /*.do ajp13 </IfModule> Check the file /usr/local/jakarta/tomcat/conf/server.xml Add the entry for host <Host name="domainname" appBase="/home/username/public_html">
<Alias>www.domainname</Alias>
<Context path="" reloadable="true"
docBase="/home/username/public_html" debug="1"/>
<Context path="/manager" debug="0" privileged="true"
docBase="/usr/local/jakarta/tomcat/server/webapps/manager">
</Context>
</Host>
Restart the services /usr/local/jakarta/tomcat/bin/shutdown.sh 1 Comment »RSS feed for comments on this post. TrackBack URI Leave a comment |
![]() Powered and designed by Presoon.com. |
excellent blog man..excellent…
Comment by kiran — April 29, 2009 #