Add \\ config argument to moinMoin and wordPress
[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
2d25e552 17val webNodes_all = [("navajos", {version = APACHE_2, auth = MOD_WAKLOG})]
fec6c9c4 18val webNodes_admin = [("deleuze", {version = APACHE_2, auth = MOD_WAKLOG})]
60695e99 19
a51387b8 20val webNodes_default = ["navajos"]
8a7c40fa 21
e95a129e
AC
22val proxyTargets = ["http://hcoop.net/cgi-bin/mailman",
23 "http://hcoop.net/pipermail"]
24
2d25e552 25val proxyHosts = ["bog"]
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
f086616f
AC
44fun realLogDirOf user =
45 if size user < 2 then
46 "/bad_username"
47 else
48 String.concat ["/afs/hcoop.net/user/",
49 String.substring (user, 0, 1),
50 "/",
51 String.substring (user, 0, 2),
52 "/",
53 user,
54 "/.logs/apache"]
55
31b50af0
AC
56fun backupLogDirOf version1 =
57 if version1 then
58 "/afs/hcoop.net/common/etc/domtool/backup/apache/"
59 else
60 "/afs/hcoop.net/common/etc/domtool/backup/apache2/"
61
37051a6c 62val defaultPhpVersion = 5
e7482df3 63
563e7792
AC
64val waklogUserFile = "/var/domtool/waklog.conf"
65
8a7c40fa 66end