如何禁用nginx日志记录,没有暴击错误?
error_log off – 不起作用,只是创建文件名“off”,真的,不是开玩笑.
error_log dev / null不支持.
操作系统freebsd.我需要禁用子域的日志记录.
http://wiki.nginx.org/CoreModule#error_log
来自维基
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;