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