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:<br>...<br>server {<br>&nbsp; ...<br>&nbsp; location = /health.html {<br>&nbsp;&nbsp;&nbsp; access_log off;<br>
&nbsp; }<br>&nbsp; ...<br>}<br><br><div class="gmail_quote">On Tue, Dec 2, 2008 at 10:32 AM, Yanni Mac <span dir="ltr">&lt;<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a load balancer in front of nginx that performs health checks<br>
every 2 seconds by requesting a html file from nginx. &nbsp;This is filling<br>
up my access log. &nbsp; &nbsp;Can nginx be configured so that it does not log<br>
requests from a certain IP. &nbsp;Thanks in advance!<br>
<font color="#888888">--<br>
Posted via <a href="http://www.ruby-forum.com/" target="_blank">http://www.ruby-forum.com/</a>.<br>
<br>
</font></blockquote></div><br>