6a5dd6553d564259e1c024fa718b2f3858a7ef07
[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 val webNodes_admin = [("deleuze", {version = APACHE_2, auth = MOD_WAKLOG})]
19
20 val webNodes_default = ["mire"]
21
22 val proxyTargets = ["http://hcoop.net/cgi-bin/mailman",
23 "http://hcoop.net/pipermail"]
24
25 val public_html = "public_html"
26
27 fun logDirOf version1 user =
28 if size user < 2 then
29 "/bad_username"
30 else
31 String.concat [if version1 then
32 "/var/log/apache/user/"
33 else
34 "/var/log/apache2/user/",
35 String.substring (user, 0, 1),
36 "/",
37 String.substring (user, 0, 2),
38 "/",
39 user,
40 "/apache/log"]
41
42 fun realLogDirOf user =
43 if size user < 2 then
44 "/bad_username"
45 else
46 String.concat ["/afs/hcoop.net/user/",
47 String.substring (user, 0, 1),
48 "/",
49 String.substring (user, 0, 2),
50 "/",
51 user,
52 "/.logs/apache"]
53
54 fun backupLogDirOf version1 =
55 if version1 then
56 "/afs/hcoop.net/common/etc/domtool/backup/apache/"
57 else
58 "/afs/hcoop.net/common/etc/domtool/backup/apache2/"
59
60 val defaultPhpVersion = 4
61
62 val waklogUserFile = "/var/domtool/waklog.conf"
63
64 end