Drop default TTL to one hour
[hcoop/domtool2.git] / configDefault / apache.cfg
CommitLineData
8a7c40fa
AC
1structure Apache :> APACHE_CONFIG = struct
2
f8ef6c20
AC
3open ConfigTypes
4
1c246434 5val reload = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache"
8e965b2d
AC
6val down = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache-down"
7val undown = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache-undown"
c17d0537 8val fixperms = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache-fixperms"
8a7c40fa 9
55d4a268
AC
10val reload1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3"
11val down1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3-down"
12val undown1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3-undown"
c17d0537 13val fixperms1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3-fixperms"
55d4a268 14
a49a9bfb 15val confDir = "/var/domtool/vhosts"
8a7c40fa 16
1645cdcc
CE
17val webNodes_all = [("mire", {version = APACHE_2, auth = MOD_WAKLOG}),
18 ("navajos", {version = APACHE_2, auth = MOD_WAKLOG})]
03f5c149
CE
19val webNodes_admin = [("deleuze", {version = APACHE_2, auth = MOD_WAKLOG}),
20 ("fritz", {version = APACHE_2, auth = MOD_WAKLOG})]
60695e99
AC
21
22val webNodes_default = ["mire"]
8a7c40fa 23
e95a129e
AC
24val proxyTargets = ["http://hcoop.net/cgi-bin/mailman",
25 "http://hcoop.net/pipermail"]
26
291eacbf
CE
27val proxyHosts = ["localhost", (* deprecated! *)
28 "mire"]
29
0da1c677 30val public_html = "public_html"
de7fde3d 31
7d6cc0ec 32fun logDirOf version1 user =
409542d7
AC
33 if size user < 2 then
34 "/bad_username"
35 else
7d6cc0ec
AC
36 String.concat [if version1 then
37 "/var/log/apache/user/"
38 else
39 "/var/log/apache2/user/",
409542d7
AC
40 String.substring (user, 0, 1),
41 "/",
42 String.substring (user, 0, 2),
43 "/",
44 user,
45 "/apache/log"]
46
f086616f
AC
47fun realLogDirOf user =
48 if size user < 2 then
49 "/bad_username"
50 else
51 String.concat ["/afs/hcoop.net/user/",
52 String.substring (user, 0, 1),
53 "/",
54 String.substring (user, 0, 2),
55 "/",
56 user,
57 "/.logs/apache"]
58
31b50af0
AC
59fun backupLogDirOf version1 =
60 if version1 then
61 "/afs/hcoop.net/common/etc/domtool/backup/apache/"
62 else
63 "/afs/hcoop.net/common/etc/domtool/backup/apache2/"
64
e7482df3
AC
65val defaultPhpVersion = 4
66
563e7792
AC
67val waklogUserFile = "/var/domtool/waklog.conf"
68
8a7c40fa 69end