Hosts

From OpenPSA Wiki

Jump to: navigation, search

Hosts represent Websites or distinctly separate parts of the same website and may be set up at the root level of a domain or in what appears to the browser as a directory. In a Midgard MySQL Database, they are stored in the table host and are based on the MgdSchema midgard_host

They must contain at least one Page (which is called Root Page) and can be associated with one Style, which is the Root Style for this Host. More than one Host can be created for the same page, so that www.example1.net and www.example2.net point to the same website, effectively performing a function similar to Apache's ServerAlias directive.

For Hosts, locations must be specified. These are used as the base URL for all requests to the given Midgard web site. Locations can be domain (www.example.com) or subdomain (sub.example.com) names and can include a Host Prefix (www.example.com/prefix). If you want to change the location, you have to do it in two places: the apache config file, and the Midgard database. On MidCOM-based Hosts, the link to midcom-static also must be changed (if DocumentRoot is altered).


Hosts can be based on MidCOM.

Personal tools