Welcome! Log In Create A New Profile

Advanced

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

January 11, 2010 12:28PM
On Mon, Jan 11, 2010 at 8:28 AM, Grzegorz Nosek
<grzegorz.nosek@gmail.com> wrote:

> 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).

I have this as well, but from some hardware load balancer our provider uses.

I want to have it basically say:

if ($remote_addr ~* 10.2.34.3) {
access_log off;
}

Or something of the nature. Note: that is pseudocode, I probably
messed up the ~* but I just woke up. It was an example :)

I think I tried this and it didn't work (and I'm sure Grzegorz tried it too)

_______________________________________________
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: 331
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready