Allow vetoing of suexec
[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
AC
11extern type suexec_flag;
12extern val suexec_flag : bool -> suexec_flag;
13{{Whether or not to use Suexec with a vhost.
14[suexec_flag] fails when passed [false] by a user without the 'www' privilege.}}
15
8a7c40fa 16extern val vhost : host -> Vhost => [Domain]
60695e99 17 {WebNodes : [web_node],
8a7c40fa
AC
18 SSL : bool,
19 User : your_user,
20 Group : your_group,
21 DocumentRoot : your_path,
00a13ad8
AC
22 ServerAdmin : email,
23 SuExec : suexec_flag};
f8dfbbcc
AC
24{{Add a new named Apache virtual host, specifying which nodes' Apache servers
25 should answer requests for this host, whether it should use SSL, what UNIX
26 user and group dynamic content generators should be run as, the filesystem
27 path to the static content root, and the e-mail address to which error pages
28 should direct visitors.}}
2882ee37
AC
29
30context Location;
31
32extern type location;
33{{A valid URI prefix}}
34
3196000d 35extern val location : location -> Vhost & Location => [Vhost & !Location];
2882ee37
AC
36extern val directory : your_path -> ^Vhost & Location => [Vhost & !Location];
37{{Set some configuration specific to a URI prefix or filesystem directory,
38 respectively.}}
edd38024
AC
39
40extern val serverAlias : your_domain_host -> [Vhost];
41{{Give an alternate hostname for this vhost.}}