nginx turn off logging access_log Close

Online bunch of mistakes example, I do not Tucao, unverified various closed configuration .emmm ....

Examples of errors:

  • error_log off ;
  • access_log on;

These will have named off / on the log file ....

Close the right way:

  • access_log off;
  • error_log /dev/null;

Guess you like

Origin www.cnblogs.com/jonnyan/p/11263118.html