Welcome! Log In Create A New Profile

Advanced

Re: Disable default error_log?

Jonathan Matthews
May 11, 2012 07:08PM
On 10 May 2012 09:07, Johan Brinch <brinchj@gmail.com> wrote:
> Hi,
>
> It seems something in nginx has changed: I can no longer run it in
> isolation as a user. Even if I disable or move all log files to a
> place the user has control over, nginx will still try to open
> "/var/log/nginx/error.log". Is this path hard-coded, or is it possible
> to change it?
>
> This the output I get when trying to run nginx with a custom configuration file:
>
> $ nginx -g 'error_log /dev/null crit;' -q -c mynginx.conf
> nginx: [alert] could not open error log file: open()
> "/var/log/nginx/error.log" failed (13: Permission denied)

http://wiki.nginx.org/NginxMainModule#error_log seems to suggest that
you'll have this problem since 0.7.53. Does that fit in with the
timeline of your "something [...] has changed", above?

If so, "known issue".

If not, something else may have changed - perhaps the order in which
the -g/-c parameters are examined (a complete guess, of course) - and
you should continue shouting about it :-)

J
--
Jonathan Matthews
Oxford, London, UK
http://www.jpluscplusm.com/contact.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Disable default error_log?

Johan Brinch May 10, 2012 04:10AM

Re: Disable default error_log?

Jonathan Matthews May 11, 2012 07:08PM

Re: Disable default error_log?

Johan Brinch May 14, 2012 11:00AM

Re: Disable default error_log?

Jonathan Matthews May 15, 2012 07:54AM

Re: Disable default error_log?

Johan Brinch May 15, 2012 08:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready