Nginx double requests for my upstreams?

Maxim Dounin mdounin at
Tue Jun 30 20:48:02 MSD 2009


On Tue, Jun 30, 2009 at 10:54:57AM -0400, funkdoobiest wrote:

> Hi,
> the problem of the doubled requests is still there :-(
> Here are the lines from the logs:
> nginx-access-log:


> 213.162.66.XXX - - [28/Jun/2009:14:11:20 +0200] "POST /premium/paypremium HTTP/1.1" 400 0 "http://www.DOMAIN.COM/premium/getpremium/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)"


Here nginx returned 400 (Bad Request).  Since number of bytes sent 
to client logged as 0 it's looks like connection has been dropped 
by client while sending request.  It shouldn't involve any 
upstream work after error was detected though.

> There is no entry in the error-logs for this requests.

Some detailed info should be logged at info level.  If your config 
hasn't changed from initial post - your logging level currently 
set to error which isn't enough to see such messages.

Could you please try to obtain debug log for such request?

Maxim Dounin

More information about the nginx mailing list