Log config - can I ignore requests from a certain IP?

Merlin merlin at mahalo.com
Thu Dec 4 03:10:43 MSK 2008

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;

On Tue, Dec 2, 2008 at 10:32 AM, Yanni Mac <lists at ruby-forum.com> wrote:

> I have a load balancer in front of nginx that performs health checks
> every 2 seconds by requesting a html file from nginx.  This is filling
> up my access log.    Can nginx be configured so that it does not log
> requests from a certain IP.  Thanks in advance!
> --
> Posted via http://www.ruby-forum.com/.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20081203/36e7b000/attachment.html>

More information about the nginx mailing list