mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 22:38:21 +00:00
Merge pull request #3230 from robberer/module/httpd
httpd: disable logging when logFormat = "none"
This commit is contained in:
commit
c0da615c02
@ -130,7 +130,7 @@ let
|
||||
'';
|
||||
|
||||
|
||||
loggingConf = ''
|
||||
loggingConf = (if mainCfg.logFormat != "none" then ''
|
||||
ErrorLog ${mainCfg.logDir}/error_log
|
||||
|
||||
LogLevel notice
|
||||
@ -141,7 +141,9 @@ let
|
||||
LogFormat "%{User-agent}i" agent
|
||||
|
||||
CustomLog ${mainCfg.logDir}/access_log ${mainCfg.logFormat}
|
||||
'';
|
||||
'' else ''
|
||||
ErrorLog /dev/null
|
||||
'');
|
||||
|
||||
|
||||
browserHacks = ''
|
||||
|
Loading…
Reference in New Issue
Block a user