Talk:Nginx: Difference between revisions

From NixOS Wiki
imported>Vater
 
imported>Vater
m @user:Mic92: thanks (dank dir für die berichtigung! :-) ist schön zu wissen, dass wer meine trivialen englischsprachen fehler erkennt. gern kannst du - wenn das einfach ist - auch gern gleich selbst drüberbügeln.)
 
Line 1: Line 1:
== how to log as less as possible ==
== how to log as little as possible ==


; error_log:
; error_log:

Latest revision as of 11:00, 20 February 2022

how to log as little as possible

error_log

https://nginx.org/en/docs/ngx_core_module.html#error_log

log as less as possible errors

  services.nginx.logError = ''stderr emerg'';

log as less as possible errors and write them to nowhere

  services.nginx.logError = ''/dev/null emerg'';

?log as less as possible errors for (a or maybe) all virtualHosts and write them to nowhere?

  services.nginx.virtualHosts."domain.tld".extraConfig = ''
error_log /dev/null emerg;
  '';

access_log

https://nginx.org/en/docs/http/ngx_http_log_module.html#access_log

  services.nginx.virtualHosts."domain.tld".extraConfig = ''
access_log off;
  '';