Need to exclude file from server logs

Igor Sysoev igor at sysoev.ru
Tue Feb 22 23:07:13 MSK 2011


On Tue, Feb 22, 2011 at 11:02:47AM -0500, bindsocket wrote:
> Thanks all.  Access log is much prettier now.
> And as far as the every 30 seconds thing, the suggestion from the server
> was 15 seconds.  Probably be changing it to much longer as we are going
> to be doing something else for a health check eventually anyways.  Still
> dont want to bother with logging it regardless.
> Just the simple:
> 
> location /hc {
>   access_log off;
> }
> 
> worked just fine for this application.

If you request exactly "/hc", then it's better to use

 location = /hc {
   access_log off;
 }


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list