How to disable nginx logging, without crit errors?
error_log off - doesnt works, just creates filename "off", really, not joke.
error_log dev/null doesnt supports.
OS freebsd. I need disable logging for subdomain.
To disable NGINX access and error log for all latest NGINX version
http {
access_log off;
error_log off;
}
http://wiki.nginx.org/CoreModule#error_log
From wiki
Note that error_log off does not disable logging - the log will be written to a file named "off". To disable logging, you may use:
error_log /dev/null crit;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With