title: How to turn off or specify the nginx error log location?
body: <p>I compiled the nginx on Ubuntu myself.
  I start my nginx with -c nginx.conf parameter.
  In my nginx.conf file, I try to turn off error log with but failed.</p>
  
  <pre><code>error_log /dev/null crit;
  </code></pre>
  
  <p>Still got the error message:
  nginx: [alert] could not open error log file: open() "/usr/nginx/logs/error.log" failed (2: No such file or directory)</p>
  
  <p>How could I turn off this log or change its location? </p>