mike mike503 at
Wed Nov 12 01:42:53 MSK 2008


Question -

Is there any way nginx can support conditional error logging and
conditional debugging?

Turning on debugging for an entire server produces way too much
output. I'd love to be able to turn on debugging anywhere. From server
{} or location {} or even an if statement. This was one thing that
lighttpd was great with.

Same with error logging - there are a couple conditions where I'd like
to turn error_log off - but error_log is a global setting.

These two things would make my life a bit easier. Especially the
debugging one. I have the misfortune of supporting a complex site
setup with a ton of rewrites and a handful of location blocks and
such, and it helps to be able to debug which one(s) are being
triggered, but each HTTP request produces like 50-60 lines of output -
and one page might trigger 10-20 HTTP requests easily. That's a lot of
scroll and text to deal with ...

Thanks :)

On Tue, Nov 11, 2008 at 12:07 PM, Igor Sysoev <is at> wrote:
> Changes with nginx 0.7.21                                        11 Nov 2008
>    *) Changes in the ngx_http_limit_req_module.
>    *) Feature: the EXSLT support in the ngx_http_xslt_module.
>       Thanks to Denis F. Latypoff.
>    *) Workaround: compatibility with glibc 2.3.
>       Thanks to Eric Benson and Maxim Dounin.
>    *) Bugfix: nginx could not run on MacOSX 10.4 and earlier; the bug had
>       appeared in 0.7.6.
> --
> Igor Sysoev

More information about the nginx mailing list