Host-deploy

From CauchoWiki

Jump to: navigation, search


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

Essentially, it's an automatic directory for <host> directives 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>
attributedescriptiondefault
pathThe location for both expansion directories and archivesnone
archive-directoryThe location for archive (.jar) filespath
expand-directoryThe directory where archives are expandedpath
host-nameAn EL expression for auto-generated host namesnone
expand-cleanup-filesetList of files to delete on redeploydelete entire archive
require-fileadditional files which will force a reloadnone
startup-modestarting mode of deployed hosts"automatic"
redeploy-modemode for checking an redeploying hosts"automatic"
host-defaultdefault configuration for all hostsnone
Personal tools