error log not reflect the problem related log

Maxim Dounin mdounin at mdounin.ru
Tue Mar 20 10:25:38 UTC 2012


Hello!

On Tue, Mar 20, 2012 at 05:49:17AM -0400, niraj wrote:

> Hi
> 
>    I have configured the nagios on centos, I have perl related code that
> I have set.
> 
> the problem is that when I was configured the same, it had a problem of
> database connection, but in error log it shows the error like 502  bad
> gateway or  other error which not reflect the error related to database.
> Means from the error I was not able to conclude that what was the
> problem.
> 
> 
> Is there any way to change the error log setting so  it reflect the
> exact problem ?

The exact reason is expected to be in your backend's log.  It's 
your backend which failed to produce response, nginx doesn't known 
why it failed to do so.

Maxim Dounin



More information about the nginx mailing list