Web Applications under Apache Tomcat with multiple directory contexts

Posted by goran on Server Fault See other posts from Server Fault or by goran
Published on 2010-04-26T12:22:45Z Indexed on 2010/04/26 12:33 UTC
Read the original article Hit count: 287

Filed under:
|
|

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.

© Server Fault or respective owner

Related posts about tomcat

Related posts about webapp