Host-deploy

From Resin 3.0

Revision as of 19:07, 9 November 2005 by Ferg (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The <host-deploy> tag configures a host expansion directory like the web-app's webapps directory.

Essentially, it's an automatic directory for <host> tags with archive-path attributes.

For example, in the default resin.conf, if you drop a foo.jar in server.root/hosts, it will expand to hosts/foo and be browseable at http://www.foo.com.

It's also possible to create a Virtual Host without a .jar file by creating a directory in the hosts.

<resin xmlns="http://caucho.com/ns/resin">
  ...
  <server>
    <host-deploy host-name="www.${host.id}.com" path="hosts"/>
  </server>
  ... 
</resin>
attribute description default
path The location for both expansion directories and archives none
archive-directory The location for archive (.jar) files path
expand-directory The directory where archives are expanded path
host-name An EL expression for auto-generated host names none
expand-cleanup-fileset List of files to delete on redeploy delete entire archive
require-file additional files which will force a reload none
startup-mode starting mode of deployed hosts "automatic"
redeploy-mode mode for checking an redeploying hosts "automatic"
host-default default configuration for all hosts none
Personal tools