why hardcoded /var/log/nginx/error.log in pre-built packages?

Valentin V. Bartenev vbart at nginx.com
Fri Mar 2 07:53:11 UTC 2018

On Thursday, 1 March 2018 23:40:28 MSK Daniel wrote:
> Hello all,
> can someone please explain to me why the location /var/log/nginx/error
> log is hardcoded in the official prebuilt packages?
> Or why nginx -t checks if this file exists even if there is another
> location defined in the config file?

Because nginx needs to log errors that happen before the config file
is parsed.

  wbr, Valentin V. Bartenev

More information about the nginx mailing list