Welcome! Log In Create A New Profile

Advanced

Disable default error_log?

Johan Brinch
May 10, 2012 04:10AM
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)

--
Johan Brinch

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
SubjectAuthorPosted

Disable default error_log?

Johan BrinchMay 10, 2012 04:10AM

Re: Disable default error_log?

Jonathan MatthewsMay 11, 2012 07:08PM

Re: Disable default error_log?

Johan BrinchMay 14, 2012 11:00AM

Re: Disable default error_log?

Jonathan MatthewsMay 15, 2012 07:54AM

Re: Disable default error_log?

Johan BrinchMay 15, 2012 08:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 5 on May 22, 2013
Record Number of Guests: 150 on May 22, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready