hcoop: remove mccarthy from default MailNodes
[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
30a16a20
CE
17val webNodes_all = [("navajos", {version = APACHE_2, auth = MOD_WAKLOG}),
18 ("shelob", {version = APACHE_2, auth = MOD_WAKLOG})]
a6fe50b6
CE
19val webNodes_admin = [("mccarthy", {version = APACHE_2, auth = NO_AUTH}),
20 ("minsky", {version = APACHE_2, auth = MOD_WAKLOG})]
60695e99 21
e95a129e
AC
22val proxyTargets = ["http://hcoop.net/cgi-bin/mailman",
23 "http://hcoop.net/pipermail"]
24
4f464516 25val proxyHosts = ["bog", "marsh"]
291eacbf 26
0da1c677 27val public_html = "public_html"
de7fde3d 28
7d6cc0ec 29fun logDirOf version1 user =
409542d7
AC
30 if size user < 2 then
31 "/bad_username"
32 else
7d6cc0ec
AC
33 String.concat [if version1 then
34 "/var/log/apache/user/"
35 else
36 "/var/log/apache2/user/",
409542d7
AC
37 String.substring (user, 0, 1),
38 "/",
39 String.substring (user, 0, 2),
40 "/",
41 user,
42 "/apache/log"]
43
979844d5 44(* FIXME: hcoop.net reference *)
f086616f
AC
45fun 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
31b50af0
AC
57fun backupLogDirOf version1 =
58 if version1 then
979844d5 59 ConfigCore.sharedRoot ^ "/backup/apache/"
31b50af0 60 else
979844d5 61 ConfigCore.sharedRoot ^ "/backup/apache2/"
31b50af0 62
42782c79
CE
63fun fastCgiWrapperOf user =
64 if size user < 2 then
65 "/bad_username"
66 else
67 String.concat [ConfigCore.sharedRoot,
68 "/httpd/fastcgi/",
69 String.substring (user, 0, 1),
70 "/",
71 String.substring (user, 0, 2),
72 "/",
73 user,
74 "/",
75 user,
76 "-wrapper-wrapper"]
77
78(* FIXME: hcoop reference *)
79val phpFastCgiWrapper = "/afs/hcoop.net/common/bin/php5-fcgi-wrapper"
80
979844d5 81val waklogUserFile = ConfigCore.localRoot ^ "/waklog.conf"
563e7792 82
8a7c40fa 83end