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
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: 196
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready