Article ID: 1575, created on Oct 6, 2008, last review on May 10, 2014

  • Applies to:
  • Plesk 8.x for Linux/Unix


The instructions below are for system administrator who has SSH root access to Parallels Plesk Panel server. If you do not have access to the server you should request for the reconfiguration.

Since the 8th version Plesk uses mod_jk Tomcat connector.

To be able to run .JSP pages directly from httpdocs/httpsdocs
directories you have to do some additional configuration. For example you
want to place your .JSP pages in the 'jsp' directory. You should create the 'jsp'
directory under httpdocs then create the vhost.conf file with the following

# cat HTTPD_VHOSTS_D/DOMAIN_NAME/conf/vhost.conf
<IfModule mod_jk.c>
JkMount /jsp ajp13
JkMount /jsp/* ajp13

then run websrvmng utility: "PRODUCT_ROOT_D/admin/sbin/websrvmng -v -a".

Then you should modify server.xml and create additional 'Context' inside appropriate <Host> tag. Host in Tomcat is the same as VirtaulHost in Apache configuration.

<!-- Here is part of the server.xml Host tag for "DOMAIN_NAME" domain: -->
<Host deployXML="true" name="DOMAIN_NAME" debug="0" appBase="psa-webapps/DOMAIN_NAME" unpackWARs="false"
autoDeploy="true" liveDeploy="true">

<!-- This is Context that is generated by Plesk: -->
<Context crossContext="false" reloadable="false" useNaming="true" debug="0" swallowOutput="false" privileged="true" displayName="Tomcat Manager Application" docBase="/var/tomcat4/server/webapps/manager" cookies="true" path="/manager" cachingAllowed="true"/>

<!-- This is Context that you should add to server.xml after the default Plesk Context: -->
<Context crossContext="false"
reloadable="false" useNaming="true" debug="0" swallowOutput="false"
privileged="true" displayName="Your Application Name"
docBase="/var/www/vhosts/DOMAIN_NAME/httpdocs/jsp" cookies="true"
path="/jsp" cachingAllowed="true"/>

className="org.apache.catalina.realm.MemoryRealm" debug="0" pathname="psa-users/DOMAIN_NAME.xml" validate="true"/>

Restart tomcat after server.xml modification.

Please note that you should replace DOMAIN_NAME with a real domain name.

Next, the user Tomcat is run under (usually it is tomcat) should be added into psaserv group in order to allow Tomcat to have access to a domain's httpdocs directory.

After that you can access your application by url like this: http://DOMAIN_NAME/jsp

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c b8ef5052d936e902043e41759118114e 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF