Disable nginx logs

后端 未结 3 1388
鱼传尺愫
鱼传尺愫 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:46

    To disable NGINX access and error log for all latest NGINX version

      http {
    
              access_log off;
              error_log off;
    
           }
    

提交回复
热议问题