Host-deploy

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
(renamed tag to directive)
 
Line 1: Line 1:
[[Category:Configuration]] [[Category:Tags]]
+
[[Category:Configuration]] [[Category:Directives]]
  
The <host-deploy> tag configures a host expansion directory like the [[web-app]]'s [[webapps]] directory.
+
The <host-deploy> directive 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.
+
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.
 
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.

Latest revision as of 20:21, 21 February 2006


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>
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