SSL certificates
[hcoop/domtool2.git] / lib / apache.dtl
CommitLineData
8a7c40fa
AC
1{{Apache web server configuration}}
2
60695e99
AC
3extern type web_node;
4{{Nodes that accept Apache configuration from you}}
5
6extern val web_node_to_node : web_node -> node;
7
8a7c40fa
AC
8context Vhost;
9{{A WWW virtual host}}
10
00a13ad8 11extern type suexec_flag;
00a13ad8 12{{Whether or not to use Suexec with a vhost.
434a7b1f
AC
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;
00a13ad8 22
8a7c40fa 23extern val vhost : host -> Vhost => [Domain]
60695e99 24 {WebNodes : [web_node],
434a7b1f 25 SSL : ssl,
8a7c40fa
AC
26 User : your_user,
27 Group : your_group,
28 DocumentRoot : your_path,
00a13ad8
AC
29 ServerAdmin : email,
30 SuExec : suexec_flag};
f8dfbbcc
AC
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.}}
2882ee37
AC
36
37context Location;
38
39extern type location;
40{{A valid URI prefix}}
41
3196000d 42extern val location : location -> Vhost & Location => [Vhost & !Location];
2882ee37
AC
43extern val directory : your_path -> ^Vhost & Location => [Vhost & !Location];
44{{Set some configuration specific to a URI prefix or filesystem directory,
45 respectively.}}
edd38024
AC
46
47extern val serverAlias : your_domain_host -> [Vhost];
48{{Give an alternate hostname for this vhost.}}