mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 15:34:05 +00:00
svn path=/nixos/trunk/; revision=10781
This commit is contained in:
parent
063fd9eeb6
commit
50800ad3b5
@ -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 {
|
user = mkOption {
|
||||||
default = "wwwrun";
|
default = "wwwrun";
|
||||||
description = "
|
description = "
|
||||||
|
@ -196,6 +196,11 @@ let
|
|||||||
ServerAdmin ${cfg.adminAddr}
|
ServerAdmin ${cfg.adminAddr}
|
||||||
'' else ""}
|
'' else ""}
|
||||||
|
|
||||||
|
${if !isMainServer && mainCfg.logPerVirtualHost then ''
|
||||||
|
ErrorLog ${mainCfg.logDir}/error_log-${cfg.hostName}
|
||||||
|
CustomLog ${mainCfg.logDir}/access_log-${cfg.hostName} common
|
||||||
|
'' else ""}
|
||||||
|
|
||||||
${robotsConf}
|
${robotsConf}
|
||||||
|
|
||||||
${if isMainServer || cfg.documentRoot != null then documentRootConf else ""}
|
${if isMainServer || cfg.documentRoot != null then documentRootConf else ""}
|
||||||
|
Loading…
Reference in New Issue
Block a user