Conditional error_log capability?

mike mike503 at gmail.com
Sun Sep 21 07:51:47 MSD 2008


I think something like this:
http://wiki.codemongers.com/HWLoadbalancerCheckErrors

However, error_log can't be inside of a conditional block due to the
fact it can't be in a location {} or possibly even server {} (I tried
something I thought would work and it told me it was invalid)

Anyone got any ideas? I am not sure if it's the SYN-ACT-RST issue. I
think it's just doing a quick port 80 check and not a proper http
request. I don't want my logfiles to fill up because of this stuff...

On Fri, Sep 19, 2008 at 5:00 PM, mike <mike503 at gmail.com> wrote:
> Our new ISP's load balancer is going crazy, and is apparently issuing
> partial HTTP requests constantly or something.
>
> This is flooding the error log, and I'm wondering if there is a way to
> disable the error_log conditionally? Or any other ideas?
>
> Thanks.
>
>
> 2008/09/19 16:58:25 [info] 6950#0: *184 client closed prematurely
> connection while reading client request line, client: 10.122.1.254,
> server: foo.com
> 2008/09/19 16:58:25 [info] 6950#0: *185 client closed prematurely
> connection while reading client request line, client: 10.122.1.254,
> server: foo.com
> 2008/09/19 16:58:27 [info] 6950#0: *186 client closed prematurely
> connection while reading client request line, client: 10.122.1.254,
> server: foo.com
> 2008/09/19 16:58:27 [info] 6950#0: *187 client closed prematurely
> connection while reading client request line, client: 10.122.1.254,
> server: foo.com
> 2008/09/19 16:58:27 [info] 6950#0: *188 client closed prematurely
> connection while reading client request line, client: 10.122.1.254,
> server: foo.com
> 2008/09/19 16:58:28 [info] 6950#0: *189 client closed prematurely
> connection while reading client request line, client: 10.122.1.254,
> server: foo.com
>





More information about the nginx mailing list