I need to be able to run Tomcat applications from Document Root to access them as www.domainname.com/index.jsp? Print

  • 23

Resolution

Firstly, you should deploy an application with Plesk then edit the 'path' value for the appropriate application in tomcat4/conf/server.xml:

path="/application_name"

replace with:

path=""

Additionally, you should create domain.tld/conf/vhost.conf and add:

<Ifmodule mod_webapp.c>
WebAppConnection domain_tld_Connection1 warp Server_IP_address:9008
WebAppDeploy "yourapp.war" domain_tld_Connection1 "/"
</IfModule>

next, you should rebuild the apache configuration files with:

# /usr/local/psa/admin/sbin/websrvmng -a -v

and restart tomcat.

Now you can access your application with domain.tld path in browser.


Was this answer helpful?

« Back