X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/f8ef6c208aee42dd24c8836797a89f786c985a6f..94b7b11acaf25eadda183ff48cf2cf497e8aef58:/configDefault/apache.cfg diff --git a/configDefault/apache.cfg b/configDefault/apache.cfg index 7181b49..0a58d57 100644 --- a/configDefault/apache.cfg +++ b/configDefault/apache.cfg @@ -22,4 +22,19 @@ val proxyTargets = ["http://hcoop.net/cgi-bin/mailman", val public_html = "public_html" +fun logDirOf version1 user = + if size user < 2 then + "/bad_username" + else + String.concat [if version1 then + "/var/log/apache/user/" + else + "/var/log/apache2/user/", + String.substring (user, 0, 1), + "/", + String.substring (user, 0, 2), + "/", + user, + "/apache/log"] + end