Welcome! Log In Create A New Profile

Advanced

Re: 400 bad request errors

October 06, 2009 12:50PM
On Tue, Oct 06, 2009 at 11:53:19AM -0400, pepejose wrote:

> > Igor Sysoev Wrote:
> > -------------------------------------------------------
> >
> >
> > Anyway, these bad requests are caused 400 error
> > much early than "return 444".
> >
> >
> > --
> > Igor Sysoev
> > http://sysoev.ru/en/
>
> then,
>
> in the wiki says this
>
> "The basic name of server is used in an HTTP redirects, if no Host header was in client request or that header does not match any assigned server_name"
>
> the response is HTTP 444 if there is the host header but there is no virtualhost defined with same host
> but 400 bad request when no header host in request, however, the sever field equals "_" and not empty

If nginx gets empty request (no any symbol at all) and does not even try
to search virtualhost, etc. It just returns 400.

> all this because every day I have many entries in the access.log like this and want to find out why:

I've shown the ways to emulate such requests:
"telnet host 80", then press Ctrl-D.
It may be some scanners. It may be browser that has started an images
download and has stopped the connection, because user has clicked on a link.

> >>I have in one hour 441
> > > "NULL 400 Bad Requests" made by 45 ips aprox
> > >
> > > example:
> > >
> > > 17 connections: same ip, same second
> > >
> > > IP _ - [01/Oct/2009:09:44:40 +0200] "-" 400 0 "-"
> > > "-" "-"
> > > IP _ - [01/Oct/2009:09:44:40 +0200] "-" 400 0 "-"
> > > "-" "-"
> > > IP _ - [01/Oct/2009:09:44:40 +0200] "-" 400 0 "-"
> > > "-" "-"
> > > IP _ - [01/Oct/2009:09:44:40 +0200] "-" 400 0 "-"
> >> etc .....


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

400 bad request errors

pepejose September 28, 2009 10:07AM

Re: 400 bad request errors

Maxim Dounin September 28, 2009 10:30AM

Re: 400 bad request errors

Ray September 28, 2009 10:40AM

Re: 400 bad request errors

pepejose September 28, 2009 10:44AM

Re: 400 bad request errors

Maxim Dounin September 28, 2009 10:56AM

Re: 400 bad request errors

pepejose September 28, 2009 11:02AM

Re: 400 bad request errors

pepejose October 01, 2009 04:13AM

Re: 400 bad request errors

pepejose October 06, 2009 10:19AM

Re: 400 bad request errors

Igor Sysoev October 06, 2009 10:44AM

Re: 400 bad request errors

pepejose October 06, 2009 10:56AM

Re: 400 bad request errors

pepejose October 06, 2009 11:12AM

Re: 400 bad request errors

Igor Sysoev October 06, 2009 11:20AM

Re: 400 bad request errors

pepejose October 06, 2009 11:53AM

Re: 400 bad request errors

Igor Sysoev October 06, 2009 12:50PM

Re: 400 bad request errors

pepejose October 06, 2009 01:08PM

Re: 400 bad request errors

pepejose October 07, 2009 10:57AM

Re: 400 bad request errors

Igor Sysoev October 07, 2009 11:20AM

Re: 400 bad request errors

cdan18po October 08, 2009 02:35AM

Re: 400 bad request errors

pepejose October 08, 2009 09:59AM

Re: 400 bad request errors

Igor Sysoev October 08, 2009 10:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 133
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready