如果nginx的server里沒配置access.log,nginx會默認將server的訪問日志記錄到access.log,
關閉方法:
在nginx.conf配置文件中,
在全局配置中添加 error_log off;
在http塊中添加:access_log off;
然后在server中單獨配置access.log
如果nginx的server里沒配置access.log,nginx會默認將server的訪問日志記錄到access.log,
關閉方法:
在nginx.conf配置文件中,
在全局配置中添加 error_log off;
在http塊中添加:access_log off;
然后在server中單獨配置access.log
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。