disable logging altogether

Toby DiPasquale codeslinger at gmail.com
Tue Jul 31 15:16:46 MSD 2007

On 7/31/07, Boris Bartzitz <bartzitz at gmail.com> wrote:
> hello,
> is there a way to disable logging? i have multiple server sections
> (virtual hosts) and if i remove error_log and access_log directives
> from a server, logging goes to the main nginx log. these logs are huge
> and useless, so i need something like "error_log off" but i don't see
> anything like this in documentation.

There's always "error_log /dev/null" to do the trick.

Toby DiPasquale

More information about the nginx mailing list