Change package-exists to return section/description
[hcoop/domtool2.git] / configDefault / apache.cfg
1 structure Apache :> APACHE_CONFIG = struct
2
3 open ConfigTypes
4
5 val reload = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache"
6 val down = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache-down"
7 val undown = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache-undown"
8 val fixperms = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache-fixperms"
9
10 val reload1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3"
11 val down1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3-down"
12 val undown1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3-undown"
13 val fixperms1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3-fixperms"
14
15 val confDir = "/var/domtool/vhosts"
16
17 val webNodes_all = [("mire", {version = APACHE_2, auth = MOD_WAKLOG}),
18 ("navajos", {version = APACHE_2, auth = MOD_WAKLOG})]
19 val webNodes_admin = [("deleuze", {version = APACHE_2, auth = MOD_WAKLOG}),
20 ("fritz", {version = APACHE_2, auth = MOD_WAKLOG})]
21
22 val webNodes_default = ["mire"]
23
24 val proxyTargets = ["http://hcoop.net/cgi-bin/mailman",
25 "http://hcoop.net/pipermail"]
26
27 val proxyHosts = ["localhost", (* deprecated! *)
28 "mire",
29 "bog"]
30
31 val public_html = "public_html"
32
33 fun logDirOf version1 user =
34 if size user < 2 then
35 "/bad_username"
36 else
37 String.concat [if version1 then
38 "/var/log/apache/user/"
39 else
40 "/var/log/apache2/user/",
41 String.substring (user, 0, 1),
42 "/",
43 String.substring (user, 0, 2),
44 "/",
45 user,
46 "/apache/log"]
47
48 fun realLogDirOf user =
49 if size user < 2 then
50 "/bad_username"
51 else
52 String.concat ["/afs/hcoop.net/user/",
53 String.substring (user, 0, 1),
54 "/",
55 String.substring (user, 0, 2),
56 "/",
57 user,
58 "/.logs/apache"]
59
60 fun backupLogDirOf version1 =
61 if version1 then
62 "/afs/hcoop.net/common/etc/domtool/backup/apache/"
63 else
64 "/afs/hcoop.net/common/etc/domtool/backup/apache2/"
65
66 val defaultPhpVersion = 4
67
68 val waklogUserFile = "/var/domtool/waklog.conf"
69
70 end