Preguntes Freqüents - FAQ


Administració > Preguntes Freqüents - FAQ > Windows & Java/JSP > I need to be able to run Tomcat applications from Document Root to access them as www.domainname.com/index.jsp?

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

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 domainname.tld/conf/vhost.conf and add:

<Ifmodule mod_webapp.c>
WebAppConnection domain_tld_Connection1 warp Server_IP_address:9008
WebAppDeploy "yourapps.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.


Llegir també