我要评分
获取效率
正确性
完整性
易理解

Disabling access_log

Purpose

Writing logs impairs system performance. Therefore, disable this function.

This setting is useful for the HTTPS scenario but not for the HTTP scenario.

Procedure

  1. Open the nginx.conf file.
  2. Press i to enter the insert mode and add the access_log off; parameter in the HTTPS scenario.
  3. Press Esc, type :wq!, and press Enter to save the file and exit.