debug logs not getting generated
Maxim Dounin
mdounin at mdounin.ru
Sat Mar 29 07:24:07 UTC 2014
Hello!
On Fri, Mar 28, 2014 at 06:04:04PM -0700, Kunal Pariani wrote:
> Hello,
> I followed this http://nginx.org/en/docs/debugging_log.html. Have nginx
> built with --with-debug and set the the error_log in the following 2 files
> (nginx.conf.main & inside http { } in nginx.conf.web). But still i don't
> see debug level logging getting generated in the files specified.
>
> error_log /log/nginx.log debug;
>
> Tried with the rewrite_flag on too. Am i missing something ?
Yes. Some things to check, in no particular order:
1) Is nginx installed is actually compiled with --with-debug
(check the "nginx -V" output)?
2) Are you running nginx binary you are checking? Make sure the
binary you are running isn't some other binary, e.g., run from a
different directory.
3) Make sure you've restarted nginx (or upgraded running binary).
4) Make sure the config you are editing is right one (and again,
you've reloaded a configuration after editing it; note that you
have to check logs after a configuration reload to make sure it
was successful).
> Also does anyone know why does nginx has these 2 types of template files
> ?(i.e .template & .default.template)
> for eg. nginx.conf.web.http.template & nginx.conf.web.http.default.template
> I see them to be exactly same.
There are no such files in nginx itself. Likely it's something
provided by your OS package.
--
Maxim Dounin
http://nginx.org/
More information about the nginx
mailing list