Talk:Nginx

From NixOS Wiki
Revision as of 11:00, 20 February 2022 by imported>Vater (@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.))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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;
  '';