Fix 'home' bugs
[hcoop/domtool2.git] / lib / apache.dtl
... / ...
CommitLineData
1{{Apache web server configuration}}
2
3context Vhost;
4{{A WWW virtual host}}
5
6extern 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
19context Location;
20
21extern type location;
22{{A valid URI prefix}}
23
24extern val location : location -> Vhost & Location => [Vhost & !Location];
25extern val directory : your_path -> ^Vhost & Location => [Vhost & !Location];
26{{Set some configuration specific to a URI prefix or filesystem directory,
27 respectively.}}
28
29extern val serverAlias : your_domain_host -> [Vhost];
30{{Give an alternate hostname for this vhost.}}