HCoop
/
hcoop
/
domtool2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Changes before announcement to hcoop-discuss
[hcoop/domtool2.git]
/
lib
/
easy_domain.dtl
1
{{The most common kinds of domain configuration}}
2
3
val web_ip : (ip) = "1.2.3.4";
4
5
val dom =
6
\ d : (your_domain) ->
7
\\ config : Domain ->
8
domain d with
9
dns (dnsNS "ns.hcoop.net");
10
dns (dnsNS "ns2.hcoop.net");
11
12
dns (dnsA "www" web_ip);
13
14
handleMail;
15
mailbox <- Mailbox;
16
catchAllAlias mailbox;
17
18
vhost "www" with
19
end;
20
21
config
22
end;