• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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