Mark Sailes
Mark Sailes

Reputation: 1254

Tomcat - Multiple webapps folders

Is it possible to have multiple folders where I can place applications to be deployed?

How are these defined?

And is it possible to restrict one folder to just be applications for "domain.com" and no other domain.

Thanks

Upvotes: 5

Views: 7871

Answers (1)

matt b
matt b

Reputation: 140021

Take a look at conf/server.xml:

  <Host name="localhost" debug="0" appBase="webapps"
   unpackWARs="true" autoDeploy="true"
   xmlValidation="false" xmlNamespaceAware="false">

You can nest <Host> elements within the <Engine> element and have different ones corresponding to different virtual hosts, different appBase's etc.

Here's the documentation on the <Host> element.

Upvotes: 9

Related Questions