Plesk for Linux 11.0.9, Update #63, CentOS 5.3
I enabled Tomcat at Plesk panel, checked http://ABC.COM:8080 setup successfully.
But somehow I want to run .jsp from domain's DocumentRoot dir i.e.
/var/www/vhosts/ABC.COM/httpdocs/, I found below KB may help to solve my problem, then I follow the third method.
KB: http://kb.odin.com/en/8569
I added the tomcat system account to the psaserv group, created a vhost.conf at /var/www/vhosts/ABC.COM/conf/, then added the following scripts:
<IfModule mod_jk.c>
JkMount /javaApp ajp13
JkMount /javaApp/* ajp13
</IfModule>
But I stopped at e) Create a context for the application in the /usr/share/tomcat5/conf/PSA/domain.tld/ROOT.xml file, because I cannot find PSA/under /usr/share/tomcat5/conf/, I just found a context.xml, server.xml, web.xml under conf/, should I copy the below into context.xml?
<Context crossContext="false"
reloadable="false" useNaming="true" debug="0" swallowOutput="false"
privileged="true" displayName="Моё приложение"
docBase="/var/www/vhosts/domain.tld/httpdocs" cookies="true"
path="" cachingAllowed="true"/>
Also should I edit the docBase to "/var/www/vhosts/ABC.COM/httpdocs"?
Thank you for your help!!!
I enabled Tomcat at Plesk panel, checked http://ABC.COM:8080 setup successfully.
But somehow I want to run .jsp from domain's DocumentRoot dir i.e.
/var/www/vhosts/ABC.COM/httpdocs/, I found below KB may help to solve my problem, then I follow the third method.
KB: http://kb.odin.com/en/8569
I added the tomcat system account to the psaserv group, created a vhost.conf at /var/www/vhosts/ABC.COM/conf/, then added the following scripts:
<IfModule mod_jk.c>
JkMount /javaApp ajp13
JkMount /javaApp/* ajp13
</IfModule>
But I stopped at e) Create a context for the application in the /usr/share/tomcat5/conf/PSA/domain.tld/ROOT.xml file, because I cannot find PSA/under /usr/share/tomcat5/conf/, I just found a context.xml, server.xml, web.xml under conf/, should I copy the below into context.xml?
<Context crossContext="false"
reloadable="false" useNaming="true" debug="0" swallowOutput="false"
privileged="true" displayName="Моё приложение"
docBase="/var/www/vhosts/domain.tld/httpdocs" cookies="true"
path="" cachingAllowed="true"/>
Also should I edit the docBase to "/var/www/vhosts/ABC.COM/httpdocs"?
Thank you for your help!!!