* Move logFormat to the per-vhost options.
svn path=/nixos/trunk/; revision=34066
This commit is contained in:
parent
5167f5abef
commit
ce3941d6e6
|
@ -220,7 +220,7 @@ let
|
|||
|
||||
${if !isMainServer && mainCfg.logPerVirtualHost then ''
|
||||
ErrorLog ${mainCfg.logDir}/error_log-${cfg.hostName}
|
||||
CustomLog ${mainCfg.logDir}/access_log-${cfg.hostName} ${mainCfg.logFormat}
|
||||
CustomLog ${mainCfg.logDir}/access_log-${cfg.hostName} ${cfg.logFormat}
|
||||
'' else ""}
|
||||
|
||||
${robotsConf}
|
||||
|
@ -447,14 +447,6 @@ in
|
|||
";
|
||||
};
|
||||
|
||||
logFormat = mkOption {
|
||||
default = "common";
|
||||
example = "combined";
|
||||
description = "
|
||||
Log format for Apache's log files. Possible values are: combined, common, referer, agent.
|
||||
";
|
||||
};
|
||||
|
||||
stateDir = mkOption {
|
||||
default = "/var/run/httpd";
|
||||
description = "
|
||||
|
|
|
@ -135,4 +135,12 @@
|
|||
";
|
||||
};
|
||||
|
||||
logFormat = mkOption {
|
||||
default = "common";
|
||||
example = "combined";
|
||||
description = "
|
||||
Log format for Apache's log files. Possible values are: combined, common, referer, agent.
|
||||
";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue