Client.getPass: catch syserror inval when detecting non-tty use
[hcoop/domtool2.git] / configDefault / apache.cfg
CommitLineData
8a7c40fa
AC
1structure Apache :> APACHE_CONFIG = struct
2
f8ef6c20
AC
3open ConfigTypes
4
979844d5
CE
5val reload = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-publish apache"
6val down = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-publish apache-down"
7val undown = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-publish apache-undown"
8val fixperms = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-publish apache-fixperms"
8a7c40fa 9
979844d5
CE
10val reload1 = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-publish apache1.3"
11val down1 = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-publish apache1.3-down"
12val undown1 = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-publish apache1.3-undown"
13val fixperms1 = ConfigCore.sudo ^ " " ^ ConfigCore.installPrefix ^ "/sbin/domtool-publish apache1.3-fixperms"
55d4a268 14
979844d5 15val confDir = ConfigCore.localRoot ^ "/vhosts"
8a7c40fa 16
2d25e552 17val webNodes_all = [("navajos", {version = APACHE_2, auth = MOD_WAKLOG})]
64c04e02
CE
18val webNodes_admin = [("deleuze", {version = APACHE_2, auth = MOD_WAKLOG}),
19 ("mccarthy", {version = APACHE_2, auth = MOD_WAKLOG})]
60695e99 20
e95a129e
AC
21val proxyTargets = ["http://hcoop.net/cgi-bin/mailman",
22 "http://hcoop.net/pipermail"]
23
2d25e552 24val proxyHosts = ["bog"]
291eacbf 25
0da1c677 26val public_html = "public_html"
de7fde3d 27
7d6cc0ec 28fun logDirOf version1 user =
409542d7
AC
29 if size user < 2 then
30 "/bad_username"
31 else
7d6cc0ec
AC
32 String.concat [if version1 then
33 "/var/log/apache/user/"
34 else
35 "/var/log/apache2/user/",
409542d7
AC
36 String.substring (user, 0, 1),
37 "/",
38 String.substring (user, 0, 2),
39 "/",
40 user,
41 "/apache/log"]
42
979844d5 43(* FIXME: hcoop.net reference *)
f086616f
AC
44fun realLogDirOf user =
45 if size user < 2 then
46 "/bad_username"
47 else
48 String.concat ["/afs/hcoop.net/user/",
49 String.substring (user, 0, 1),
50 "/",
51 String.substring (user, 0, 2),
52 "/",
53 user,
54 "/.logs/apache"]
55
31b50af0
AC
56fun backupLogDirOf version1 =
57 if version1 then
979844d5 58 ConfigCore.sharedRoot ^ "/backup/apache/"
31b50af0 59 else
979844d5 60 ConfigCore.sharedRoot ^ "/backup/apache2/"
31b50af0 61
37051a6c 62val defaultPhpVersion = 5
e7482df3 63
979844d5 64val waklogUserFile = ConfigCore.localRoot ^ "/waklog.conf"
563e7792 65
8a7c40fa 66end