3 messages in ru.sysoev.nginxRe: Log config - can I ignore request...
FromSent OnAttachments
Yanni MacDec 2, 2008 10:31 am 
MerlinDec 3, 2008 4:10 pm 
Yanni MacDec 6, 2008 6:24 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Log config - can I ignore requests from a certain IP?Actions...
From:Yanni Mac (lis@ruby-forum.com)
Date:Dec 6, 2008 6:24:15 am
List:ru.sysoev.nginx

Merlin wrote:

This problem comes up often, and the solution is usually to turn off access log for that location only; something like the following is very efficient: ... server { ... location = /health.html { access_log off; } ... }

That does not work. I think the load balancer is doing some kind of incomplete request to the health file on nginx. I am seeing 400 errors in the log and no log entries for /loadcheck.html.

12.123.123.1 - - [06/Dec/2008:09:08:28 -0500] 400 "-" 0 "-" "-" "-"

I tried something like this, but not working either:

error_page 400 /400; location = /400 { access_log off; }

I also tried to put a condition when $status is 400, but nginx gave an error that said access_log was not allowed in this block of code.

Let me know if you guys have any other ideas. Thanks!