svn path=/nixos/trunk/; revision=10781

This commit is contained in:
Eelco Dolstra 2008-02-20 13:29:08 +00:00
parent 063fd9eeb6
commit 50800ad3b5
2 changed files with 15 additions and 0 deletions

View file

@ -1194,6 +1194,16 @@
";
};
logPerVirtualHost = mkOption {
default = false;
description = "
If enabled, each virtual host gets its own
<filename>access_log</filename> and
<filename>error_log</filename>, namely suffixed by the
<option>hostName</option> of the virtual host.
";
};
user = mkOption {
default = "wwwrun";
description = "

View file

@ -196,6 +196,11 @@ let
ServerAdmin ${cfg.adminAddr}
'' else ""}
${if !isMainServer && mainCfg.logPerVirtualHost then ''
ErrorLog ${mainCfg.logDir}/error_log-${cfg.hostName}
CustomLog ${mainCfg.logDir}/access_log-${cfg.hostName} common
'' else ""}
${robotsConf}
${if isMainServer || cfg.documentRoot != null then documentRootConf else ""}