Slave catches all exceptions, to avoid dying
[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
a09d0e82 17val webNodes_all = [("mire", {version = APACHE_2, auth = MOD_WAKLOG})]
35659203 18val webNodes_admin = [("deleuze", {version = APACHE_2, auth = MOD_WAKLOG})]
60695e99
AC
19
20val webNodes_default = ["mire"]
8a7c40fa 21
e95a129e
AC
22val proxyTargets = ["http://hcoop.net/cgi-bin/mailman",
23 "http://hcoop.net/pipermail"]
24
0da1c677 25val public_html = "public_html"
de7fde3d 26
7d6cc0ec 27fun 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
31b50af0
AC
42fun backupLogDirOf version1 =
43 if version1 then
44 "/afs/hcoop.net/common/etc/domtool/backup/apache/"
45 else
46 "/afs/hcoop.net/common/etc/domtool/backup/apache2/"
47
8a7c40fa 48end