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