First support for new Apache log scheme
[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"
8a7c40fa 8
55d4a268
AC
9val reload1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3"
10val down1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3-down"
11val undown1 = "/usr/bin/sudo /usr/local/sbin/domtool-publish apache1.3-undown"
12
a49a9bfb 13val confDir = "/var/domtool/vhosts"
8a7c40fa 14
f8ef6c20
AC
15val webNodes_all = [("mire", {version = APACHE_1_3, auth = MOD_WAKLOG})]
16val webNodes_admin = [("deleuze", {version = APACHE_2, auth = NO_AUTH})]
60695e99
AC
17
18val webNodes_default = ["mire"]
8a7c40fa 19
e95a129e
AC
20val proxyTargets = ["http://hcoop.net/cgi-bin/mailman",
21 "http://hcoop.net/pipermail"]
22
0da1c677 23val public_html = "public_html"
de7fde3d 24
409542d7
AC
25fun logDirOf user =
26 if size user < 2 then
27 "/bad_username"
28 else
29 String.concat ["/var/log/apache/user/",
30 String.substring (user, 0, 1),
31 "/",
32 String.substring (user, 0, 2),
33 "/",
34 user,
35 "/apache/log"]
36
8a7c40fa 37end