Backing up Webalizer output
[hcoop/zz_old/domtool2-proto.git] / lib / apache.dtl
CommitLineData
d68ab27c 1{{Apache web server configuration}}
2
4cb2e7e7 3extern type web_node;
4{{Nodes that accept Apache configuration from you}}
5
6extern val web_node_to_node : web_node -> node;
7
d68ab27c 8context Vhost;
9{{A WWW virtual host}}
10
25c7a818 11extern type suexec_flag;
25c7a818 12{{Whether or not to use Suexec with a vhost.
d858369d 13For users with the 'www' privilege, this type is identical to [bool].
14For others, it has only one value, [true].}}
15
16extern type ssl_cert_path;
17{{Filesystem path to an SSL certificate in your 'cert' list}}
18
19extern type ssl;
20extern val no_ssl : ssl;
21extern val use_cert : ssl_cert_path -> ssl;
25c7a818 22
d68ab27c 23extern val vhost : host -> Vhost => [Domain]
4cb2e7e7 24 {WebNodes : [web_node],
d858369d 25 SSL : ssl,
d68ab27c 26 User : your_user,
27 Group : your_group,
28 DocumentRoot : your_path,
25c7a818 29 ServerAdmin : email,
30 SuExec : suexec_flag};
697d1a52 31{{Add a new named Apache virtual host, specifying which nodes' Apache servers
32 should answer requests for this host, whether it should use SSL, what UNIX
33 user and group dynamic content generators should be run as, the filesystem
34 path to the static content root, and the e-mail address to which error pages
35 should direct visitors.}}
ff2a424a 36
37context Location;
38
39extern type location;
40{{A valid URI prefix}}
41
91c5a390 42extern val location : location -> Vhost & Location => [Vhost & !Location];
ff2a424a 43extern val directory : your_path -> ^Vhost & Location => [Vhost & !Location];
44{{Set some configuration specific to a URI prefix or filesystem directory,
45 respectively.}}
69d98465 46
d3c9f0c6 47extern val serverAliasHost : your_domain_host -> [Vhost];
69d98465 48{{Give an alternate hostname for this vhost.}}
d3c9f0c6 49extern val serverAlias : host -> [Vhost];
50{{Like serverAliasHost, but adds an alias for the given hostname at every domain
51 being configured.}}
52extern val serverAliasDefault : [Vhost];
53{{Like serverAliasDefault, but adds aliases for the domains being configured
54 instead of any of their hosts/"subdomains".}}