filter out tcp connections without sending data

Igor Sysoev is at rambler-co.ru
Mon Dec 1 15:41:50 MSK 2008


On Mon, Dec 01, 2008 at 01:15:28PM +0100, Marlon de Boer wrote:

> I want to filter out the following requests
> 
> nginx: 127.0.0.1 - - [01/Dec/2008:13:10:15 +0100] "-" 400 0
> 
> I want to filter it out with a location match
> 
> location = - {
>   access_log off;
>   return 444;
> }
> 
> This doesn't work, any other method to match a "-" request?

No, this does not work as "-" in access_log means no request line at all.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list