Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Configuration > domain

domain

Domain has all the attributes of zone, with the following differences: (1) With a domain, the value of the path attribute is always '/'; and (2) during the request-handling process (see server), the hostnames attribute is used to determine whether the request will be served by this domain. The domain will be used only if one of the host names match.

Attributes
name default description
name N/A Symbolic name of domain.
hostnames N/A List of hostnames and IP addresses. (Each entry is separated by a space.)

Example:

  server:
    container = file:/home/httpd/shop/
    domain:
      name = SHOP
      hostnames = shop.domain.com
      container = file:/home/httpd/shop/
    end
  end

See also  | Configuration  | server  | Permissions
Contributes notes:
Add a note
What's new | Anvil