Expand valid proxyHosts
[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
30 val public_html = "public_html"
31
32 fun logDirOf version1 user =
33 if size user < 2 then
34 "/bad_username"
35 else
36 String.concat [if version1 then
37 "/var/log/apache/user/"
38 else
39 "/var/log/apache2/user/",
40 String.substring (user, 0, 1),
41 "/",
42 String.substring (user, 0, 2),
43 "/",
44 user,
45 "/apache/log"]
46
47 fun realLogDirOf user =
48 if size user < 2 then
49 "/bad_username"
50 else
51 String.concat ["/afs/hcoop.net/user/",
52 String.substring (user, 0, 1),
53 "/",
54 String.substring (user, 0, 2),
55 "/",
56 user,
57 "/.logs/apache"]
58
59 fun backupLogDirOf version1 =
60 if version1 then
61 "/afs/hcoop.net/common/etc/domtool/backup/apache/"
62 else
63 "/afs/hcoop.net/common/etc/domtool/backup/apache2/"
64
65 val defaultPhpVersion = 4
66
67 val waklogUserFile = "/var/domtool/waklog.conf"
68
69 end