Web Applications under Apache Tomcat with multiple directory contexts
- by goran
I have two webapps, prod-1.2.1.war and test-2.0.0.war.
If I put these straight into the "tomcat/webapps"-folder, they'll get deployed as;
hXXp://localhost/prod-1.2.1/
hXXp://localhost/test-2.0.0/
This works but really I would like them to show up as;
hXXp://localhost/vegshop/prod/
hXXp://localhost/vegshop/test/
As you see I somehow would like the "vegshop" to be included in the context path.
I also would like the version-numbering to disappear without having to rename the WAR-files.
Thank you.
This is Apache Tomcat v6.0 under Linux 2.6, running SUN JDK 1.6.