Chapter 45. Host Record Definition

A host record contains information about a host, its status and its owner.

Fields of a host record

id

The id of the host record.

name

The base URL of the Midgard host. This should contain only the host part of the URL. To serve pages for http://www.midgard-project.org/manual/ the name must be set to www.midgard-project.org.

root

The page-id of the rootpage for the host.

style

The style-id of the default style for the host.

info

If this field is set to 'auth', the authentication is required to access the host.

owner

The group-id of the owner of the host record.

port

The port this host will listen at. If set to 0 then the host will react to any port.

online

If set to zero, Midgard will not serve pages for this host. If set to one, Migard will serve pages for this host.

prefix

The path part of the Midgard host. If the host should serve pages for http://www.midgard-project.org/manual/, prefix should be test to /manual.

sitegroup

The id of the sitegroup the host belongs to.