Disable nginx logs

后端 未结 3 1373
鱼传尺愫
鱼传尺愫 2021-02-14 11:33

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 suppo

3条回答
  •  礼貌的吻别
    2021-02-14 11:40

    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;

提交回复
热议问题