Midgard Apache Directives
From OpenPSA Wiki
There is a number of directives one can use when setting up a Midgard-enabled VirtualHost. some of them are required, some are optional. In addition to those, PHP parameters also need to be used and can be modified
Syntax: MidgardEngine [On|Off] Example: MidgardEngine On
The MidgardEngine directive turns the Midgard processing on or off (default). You can selectively enable or disable Midgard processing in VirtualHost and Location sections.
Syntax: MidgardRootfile [full path to rootfile] Example: MidgardRootfile /usr/lib/apache/midgard-root.php4
You can use the MidgardRootfile to specify the location of the Midgard root file (absolute or relative to Apache server root). The default is libexec/midgard-root.php3, where the default installation puts it. There should be no need to change this location. The root file does some initialization and invokes the root template that starts the page generation process.
Syntax: MidgardDatabase [database] [username] [password] Example: MidgardDatabase midgard midgard secretpass
You can also use the MidgardDatabase to override the default database connection attributes defined in the Midgard library (all set to "midgard"). You can set different databases for different VirtualHosts. If no databases are defined but MidgardEngine is on, then the default database defined by the Midgard library is used.
Syntax: MidgardBlobDir [directory where the blobs reside] Example: MidgardBlobDir /var/www/blobs
Location where the blobs (aka attachments) are stored.
Syntax: MidgardDefaultRealm [string] Example: MidgardDefaultRealm "my Midgard machine"
Realm string that will be used for user authentication requests for SG0.
Syntax: MidgardParser [encoding] Example: MidgardParser russian
The MidgardParser directive sets text formating engine used for internal text formating and mail message handling. You may select between 'latin1' and 'russian' values. 'latin1' does conversion of chars using ISO-8859-1 encoding and converts symbols higher 160 to corresponding HTML entities. Selecting 'russian' you switch off the conversion described above and set encoding of mail messages to KOI8-R. Note that Midgard doesn't convert symbols in mail messages to KOI8-R but expects it from client program.
Syntax: MidgardPageCacheDir [directory] Example: MidgardPageCacheDir /var/cache/midgard/page
The MidgardPageCacheDir directive tells mod_midgard where to store the cached pages. This directory needs to be writeable for the apache process. If this directive is not set, the directory does not exist, or is not writeable, you'll get consistent failures for Midgard :)
Syntax: MidgardFavorFiles [On|Off] Example: MidgardFavorFiles On
The MidgardFavorFiles directive gives you the ability to choose what to serve when both a file-based and a Midgard-based resource match an URL. The default behaviour (MidgardFavorFiles Off) serves Midgard URLs. Setting it to On will allow you to serve file- (or directory-) based URLs under active pages without having to create static dummy pages to fool Midgard.
MidgardLog
Takes two parameters, the debug level (there is only one known option, Debug+) and the location of the log file
MidgardSchema
The location of site-specific MgdSchema declarations. This is obsolete in Midgard 1.8
