• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Set up .JSP pages to run from domain's DocumentRoot directory

AngusC

New Pleskian
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!!!
 
Back
Top