Debug Http 400 Errors

Andrew Deason adeason2 at
Wed Jun 11 05:58:09 MSD 2008

On Tue, 10 Jun 2008 09:25:07 -0400
"Davy Campano" <dcampano at> wrote:

> I'm getting some 400 errors in my logs, and I'm wondering if there is
> a log variable which will tell me the attempted url that was trying
> to be accessed.  I have tried both $request and $request_uri, but
> both look like they give the path to the file trying to be accessed,
> and are blank when the error code is 400.
> 0.000 [10/Jun/2008:08:24:38 -0500] - 400

This is what you see when the client closed the connection before their
request was actually sent. So you can't get the attempted url in the
log; the server never received a url from the client.

Andrew Deason
adeason2 at

More information about the nginx mailing list