2011年2月22日星期二

Re: Need to exclude file from server logs

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/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

没有评论:

发表评论