9b88bd3fbbf51ea6eaa7bb3e34bdc97211adbdb9
[hcoop/domtool2.git] / lib / apache.dtl
1 {{Apache web server configuration}}
2
3 context Vhost;
4 {{A WWW virtual host}}
5
6 extern val vhost : host -> Vhost => [Domain]
7 {WebNodes : [node],
8 SSL : bool,
9 User : your_user,
10 Group : your_group,
11 DocumentRoot : your_path,
12 ServerAdmin : email};
13 {{Add a new named Apache virtual host, specifying which nodes' Apache servers
14 should answer requests for this host, whether it should use SSL, what UNIX
15 user and group dynamic content generators should be run as, the filesystem
16 path to the static content root, and the e-mail address to which error pages
17 should direct visitors.}}
18
19 context Location;
20
21 extern type location;
22 {{A valid URI prefix}}
23
24 extern val location : location -> Vhost & Location => [Vhost & !Location];
25 extern val directory : your_path -> ^Vhost & Location => [Vhost & !Location];
26 {{Set some configuration specific to a URI prefix or filesystem directory,
27 respectively.}}
28
29 extern val serverAlias : your_domain_host -> [Vhost];
30 {{Give an alternate hostname for this vhost.}}