Domain aliases support for BIND
[hcoop/domtool2.git] / configDefault / apache.cfg
CommitLineData
8a7c40fa
AC
1structure Apache :> APACHE_CONFIG = struct
2
f8ef6c20
AC
3open ConfigTypes
4
1c246434 5val reload = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache"
8e965b2d
AC
6val down = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache-down"
7val undown = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache-undown"
8a7c40fa 8
55d4a268
AC
9val reload1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3"
10val down1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3-down"
11val undown1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3-undown"
12
a49a9bfb 13val confDir = "/var/domtool/vhosts"
8a7c40fa 14
f8ef6c20
AC
15val webNodes_all = [("mire", {version = APACHE_1_3, auth = MOD_WAKLOG})]
16val webNodes_admin = [("deleuze", {version = APACHE_2, auth = NO_AUTH})]
60695e99
AC
17
18val webNodes_default = ["mire"]
8a7c40fa 19
e95a129e
AC
20val proxyTargets = ["http://hcoop.net/cgi-bin/mailman",
21 "http://hcoop.net/pipermail"]
22
0da1c677 23val public_html = "public_html"
de7fde3d 24
7d6cc0ec 25fun logDirOf version1 user =
409542d7
AC
26 if size user < 2 then
27 "/bad_username"
28 else
7d6cc0ec
AC
29 String.concat [if version1 then
30 "/var/log/apache/user/"
31 else
32 "/var/log/apache2/user/",
409542d7
AC
33 String.substring (user, 0, 1),
34 "/",
35 String.substring (user, 0, 2),
36 "/",
37 user,
38 "/apache/log"]
39
8a7c40fa 40end