Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple appbase directories for Tomcat 5.5

Tags:

tomcat

I have machine with an installed tomcat 5.5 it serves various application from the default appbase.

I also have a bunch of directories which should get turned into WEBDAV applications, by configuring the common root as appbase, which of course is completely different from the appbase mentioned above

Neither of the directories should move.

So, is there a way to have a second appbase?

like image 853
Jens Schauder Avatar asked Dec 02 '25 19:12

Jens Schauder


1 Answers

You can't have multiple appbase but there are multiple ways to get around this issue.

  1. If you have an Apache front-end, you can make multiple hosts look like one by mapping the URLs.
  2. You can create symlink in the appBase.
  3. You can use context fragment so the docBase can be pointed to anywhere, effectively having multiple appBase.

To use context fragment, you need to place a xml file in conf/Catalina/[host] directory. The file should contain something like this,

<Context docBase="/appbase2/app">
</Context>

The xml file name will be the context/app name.

like image 153
ZZ Coder Avatar answered Dec 05 '25 13:12

ZZ Coder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!