Welcome! Log In Create A New Profile

Advanced

Filtering out non-HTTP requests (400 errors)

Grzegorz Nosek
January 11, 2010 11:34AM
Hi all,

I'm having a silly problem I'd rather ask about before spending hours.

I have a bunch of Nginxes serving a webservice behind a haproxy, whose
TCP checks (quite naturally) cause lots of 400 errors in access.log and
I'd like to filter them out. However, I cannot simply drop e.g. requests
without a Host: header as the header is universally ignored both by the
clients and the servers, so I can't really tell what's in it (and
frankly I don't care too much as there are no vhosts there).

So, is there a simple way to filter out non-HTTP requests from the
access log? http://wiki.nginx.org/HWLoadbalancerCheckErrors doesn't seem
to work unfortunately (I tried something along this way already and
checked this exact config now).

The machines are running Nginx 0.6.39-2.el5 (straight from EPEL) and I'd
rather keep it that way (otherwise I'd probably have hacked it out of the
source by now ;))

Best regards,
Grzegorz Nosek

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Filtering out non-HTTP requests (400 errors)

Grzegorz Nosek January 11, 2010 11:34AM

Re: Filtering out non-HTTP requests (400 errors)

Piotr Sikora January 11, 2010 11:56AM

Re: Filtering out non-HTTP requests (400 errors)

Grzegorz Nosek January 12, 2010 04:18AM

Re: Filtering out non-HTTP requests (400 errors)

Piotr Sikora January 12, 2010 11:16AM

Re: Filtering out non-HTTP requests (400 errors)

mike January 11, 2010 12:28PM

Re: Filtering out non-HTTP requests (400 errors)

merlin corey January 11, 2010 02:52PM

Re: Filtering out non-HTTP requests (400 errors)

Grzegorz Nosek January 12, 2010 04:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 127
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready