Tomcat: How can change root context and extracted files?
I'm beginning with the use of tomcat5/6.
Suppossing I've this:
Supponse I have a "appli1.war" for deploying.
1 - How can I configure Tomcat for the .war to be put in
but undeploy it to
/applications/application1/web (instead of /opt/tomcat6/webapps/appli1/)
2 - How can I configure Tomcat to change root context for that application so instead of accesing with:
acces with a different root context.
(really only need one accessing way, but can change depending of the application).
Reading documentation, I've found a simple way.
If may application is extracted in /applications/application1/web and I want my root context as /applications/Appli1/, there is to create a file in conf/Catalina/localhost/applications#Appli1.xml (replace each / with # and suppress first) with:
<?xml version="1.0" encoding="UTF-8"?>
|All times are GMT -5. The time now is 03:09 PM.|