Multi-configuration support
[hcoop/domtool2.git] / lib / apache.dtl
1 {{Apache web server configuration}}
2
3 extern type web_node;
4 {{Nodes that accept Apache configuration from you}}
5
6 extern val web_node_to_node : web_node -> node;
7
8 context Vhost;
9 {{A WWW virtual host}}
10
11 extern 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
24 context Location;
25
26 extern type location;
27 {{A valid URI prefix}}
28
29 extern val location : location -> Vhost & Location => [Vhost & !Location];
30 extern val directory : your_path -> ^Vhost & Location => [Vhost & !Location];
31 {{Set some configuration specific to a URI prefix or filesystem directory,
32 respectively.}}
33
34 extern val serverAlias : your_domain_host -> [Vhost];
35 {{Give an alternate hostname for this vhost.}}