<< December 11, 2007 | Home | December 13, 2007 >>

Tomcat on Plesk in the DocumentRoot

Needs refining, but here's the quick 'n nasty:

- Enable Tomcat within Plesk for the domain.

- Modify the Context for the domain within /etc/tomcat5/server.xml to
reflect the following:

<Context crossContext="false" reloadable="false" useNaming="true"
debug="0" swallowOutput="false" privileged="true" displayName="domain
name" docBase="/var/www/vhosts/domain.com/httpdocs" COOKIEs="true"
path="" cachingAllowed="true"/>


- Add a vhost.conf to the domain laying down some defaults:

[136914-www1 21:57:04]-(~)# cat
/var/www/vhosts/domain.com/conf/vhost.conf
DocumentRoot /var/www/vhosts/domain.com/httpdocs

<Directory "/var/www/vhosts/domain.com/httpdocs">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>

JkMount /servlet/* ajp13
JkMount /*.jsp ajp13

<Location "/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/META-INF/*">
AllowOverride None
deny from all
</Location>


Run websrvmng, bounce Apache, then hit up a JSP file in the document root.