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