lib: typo fix
[hcoop/domtool2.git] / configDefault / apache.cfg
... / ...
CommitLineData
1structure Apache :> APACHE_CONFIG = struct
2
3open ConfigTypes
4
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"
9
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"
14
15val confDir = ConfigCore.localRoot ^ "/vhosts"
16
17val webNodes_all = [("navajos", {version = APACHE_2, auth = MOD_WAKLOG})]
18val webNodes_admin = [("mccarthy", {version = APACHE_2, auth = NO_AUTH})]
19
20val proxyTargets = ["http://hcoop.net/cgi-bin/mailman",
21 "http://hcoop.net/pipermail"]
22
23val proxyHosts = ["bog"]
24
25val public_html = "public_html"
26
27fun logDirOf version1 user =
28 if size user < 2 then
29 "/bad_username"
30 else
31 String.concat [if version1 then
32 "/var/log/apache/user/"
33 else
34 "/var/log/apache2/user/",
35 String.substring (user, 0, 1),
36 "/",
37 String.substring (user, 0, 2),
38 "/",
39 user,
40 "/apache/log"]
41
42(* FIXME: hcoop.net reference *)
43fun 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
55fun backupLogDirOf version1 =
56 if version1 then
57 ConfigCore.sharedRoot ^ "/backup/apache/"
58 else
59 ConfigCore.sharedRoot ^ "/backup/apache2/"
60
61fun 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 *)
77val phpFastCgiWrapper = "/afs/hcoop.net/common/bin/php5-fcgi-wrapper"
78
79val defaultPhpVersion = 5
80
81val waklogUserFile = ConfigCore.localRoot ^ "/waklog.conf"
82
83end