Commit | Line | Data |
---|---|---|
8a7c40fa AC |
1 | structure Apache :> APACHE_CONFIG = struct |
2 | ||
f8ef6c20 AC |
3 | open ConfigTypes |
4 | ||
979844d5 CE |
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" | |
8a7c40fa | 9 | |
979844d5 CE |
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" | |
55d4a268 | 14 | |
979844d5 | 15 | val confDir = ConfigCore.localRoot ^ "/vhosts" |
8a7c40fa | 16 | |
48c4786d CE |
17 | val webNodes_all = [("shelob", {version = APACHE_2, auth = MOD_WAKLOG})] |
18 | val webNodes_admin = [("minsky", {version = APACHE_2, auth = MOD_WAKLOG})] | |
60695e99 | 19 | |
e95a129e AC |
20 | val proxyTargets = ["http://hcoop.net/cgi-bin/mailman", |
21 | "http://hcoop.net/pipermail"] | |
22 | ||
70a832f9 | 23 | val proxyHosts = ["marsh"] |
291eacbf | 24 | |
0da1c677 | 25 | val public_html = "public_html" |
de7fde3d | 26 | |
7d6cc0ec | 27 | fun logDirOf version1 user = |
409542d7 AC |
28 | if size user < 2 then |
29 | "/bad_username" | |
30 | else | |
7d6cc0ec AC |
31 | String.concat [if version1 then |
32 | "/var/log/apache/user/" | |
33 | else | |
34 | "/var/log/apache2/user/", | |
409542d7 AC |
35 | String.substring (user, 0, 1), |
36 | "/", | |
37 | String.substring (user, 0, 2), | |
38 | "/", | |
39 | user, | |
40 | "/apache/log"] | |
41 | ||
979844d5 | 42 | (* FIXME: hcoop.net reference *) |
f086616f AC |
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 | ||
31b50af0 AC |
55 | fun backupLogDirOf version1 = |
56 | if version1 then | |
979844d5 | 57 | ConfigCore.sharedRoot ^ "/backup/apache/" |
31b50af0 | 58 | else |
979844d5 | 59 | ConfigCore.sharedRoot ^ "/backup/apache2/" |
31b50af0 | 60 | |
42782c79 CE |
61 | fun fastCgiWrapperOf user = |
62 | if size user < 2 then | |
63 | "/bad_username" | |
64 | else | |
65 | String.concat [ConfigCore.sharedRoot, | |
66 | "/httpd/fastcgi/", | |
67 | String.substring (user, 0, 1), | |
68 | "/", | |
69 | String.substring (user, 0, 2), | |
70 | "/", | |
71 | user, | |
72 | "/", | |
73 | user, | |
74 | "-wrapper-wrapper"] | |
75 | ||
76 | (* FIXME: hcoop reference *) | |
77 | val phpFastCgiWrapper = "/afs/hcoop.net/common/bin/php5-fcgi-wrapper" | |
78 | ||
979844d5 | 79 | val waklogUserFile = ConfigCore.localRoot ^ "/waklog.conf" |
563e7792 | 80 | |
8a7c40fa | 81 | end |