First support for new Apache log scheme
[clinton/domtool2.git] / configDefault / apache.cfg
index 7181b49..4ef970b 100644 (file)
@@ -22,4 +22,16 @@ val proxyTargets = ["http://hcoop.net/cgi-bin/mailman",
 
 val public_html = "public_html"
 
+fun logDirOf user =
+    if size user < 2 then
+       "/bad_username"
+    else
+       String.concat ["/var/log/apache/user/",
+                      String.substring (user, 0, 1),
+                      "/",
+                      String.substring (user, 0, 2),
+                      "/",
+                      user,
+                      "/apache/log"]
+
 end