Several application directories for Tomcat 5.5

I have a machine with tomcat 5.5 installed, it serves various applications from the default application database.

I also have a bunch of directories that should turn into WEBDAV applications, by setting the common root as an application, which, of course, is completely different from the prefix mentioned above

None of the directories should move.

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

+3
source share
4 answers

You may not have multiple applications, but there are several ways to get around this problem.

  • If you have an Apache interface, you can make multiple hosts look alike by matching URLs.
  • appBase.
  • , docBase , .

, xml conf/Catalina/[host]. - ,

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

xml /.

+5

HOSTs. A .

+1

, , .

, NTFS (, , Windows, Unix ).

0
source

Just want to add to what ZZ Coder said:

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

The xml file name can be anything, and Tomcat will use it as a path attribute for your Context. Examples:
myapp.xml → /
myapp tomcatapp # myapp.xml → tomcatapp / myapp

tomcat docs

0
source

Source: https://habr.com/ru/post/1719509/


All Articles