Generation of slash-tilde waklog directives for each user
[hcoop/domtool2.git] / configDefault / apache.cfg
index f2b9918..6a5dd65 100644 (file)
@@ -39,10 +39,26 @@ fun logDirOf version1 user =
                       user,
                       "/apache/log"]
 
+fun realLogDirOf user =
+    if size user < 2 then
+       "/bad_username"
+    else
+       String.concat ["/afs/hcoop.net/user/",
+                      String.substring (user, 0, 1),
+                      "/",
+                      String.substring (user, 0, 2),
+                      "/",
+                      user,
+                      "/.logs/apache"]
+
 fun backupLogDirOf version1 =
     if version1 then
        "/afs/hcoop.net/common/etc/domtool/backup/apache/"
     else
        "/afs/hcoop.net/common/etc/domtool/backup/apache2/"
 
+val defaultPhpVersion = 4
+
+val waklogUserFile = "/var/domtool/waklog.conf"
+
 end