Host-default

From Resin 3.0

Jump to: navigation, search


Contains default <host> configuration for all virtual hosts in a <server> (or in a <host-deploy>.)

host-default can be useful for configuring all virtual hosts with a common directory structure or access logging. For example, to configure all virtual hosts to use a webapps directory and have a separate root web-app in docs, you could use:

resin.conf

...
<server>
  <host-default>
    <web-app-deploy path="webapps"/>

    <web-app id="/" document-directory="docs"/>

    <access-log path="log/access.log" .../>
  </host-default>
  ...
</server>
..
Personal tools