NGINX looks for /logs/error.log as default?

Kasper Grubbe kasperg at benjamin.dk
Thu Oct 25 08:44:50 UTC 2012


2012/10/22 Valentin V. Bartenev <ne at vbart.ru>

> On Monday 22 October 2012 16:01:17 Kasper Grubbe wrote:
> > Hello, I have a problem with NGINX version 1.2.4 it will constantly look
> > for /logs/error.log, even though I have defined another error.log in my
> > configuration.
> [...]
> > But NGINX don't want to start because ./logs/error.log doesn't exist.
> This
> > is my error:
> >
> > [ben2 (master)]=> nginx -p . -c config/nginx/development.conf
> > nginx: [alert] could not open error log file: open() "./logs/error.log"
> > failed (2: No such file or directory)
> >
> > Am I doing it wrong?
>
> Nginx must have access to error log before it will parse configuration.
> See also the "--error-log-path=" configure parameter.
> http://www.nginx.org/en/docs/install.html
>
>  wbr, Valentin V. Bartenev
>
> --
> http://nginx.com/support.html
> http://nginx.org/en/donation.html
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

Oh, that makes sense. Then I am not able to make a smart setup that I
wanted. Thanks for your email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121025/0124d88c/attachment.html>


More information about the nginx mailing list