Host-default

From Resin 3.0

Revision as of 17:48, 21 December 2005 by Ferg (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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