debugging nginx
Hi!
I have a problem debugging nginx. I see it works as follows: set error_log to debug by adding this to the nginx vhost: [CODE]error_log /path/to/lot/debug.log debug;[/CODE]
however, this only seems to work once per section (http{ }, server{ }, ). When I add [CODE]error_log /path/to/log/debug.log debug;[/CODE] to the nginx directives of my domain, I don't get any more error logs at all. This seems to be because I now have two error_log within the server{ } part.
It seems I'd have to edit the vhost file in sites-enabled manually to enable debugging (which would only work until I edit the file the next time).
Is this right?
If it is, then it would be great if either the first error_log would get overwritten or if there was a drop-down option within the domain to choose error logging level (error, crit, notice, debug).
Thank you!