Welcome! Log In Create A New Profile

Advanced

Re: Need to exclude file from server logs

February 22, 2011 03:12PM
On Tue, Feb 22, 2011 at 12:37:11PM -0300, Flavio Torres wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 02/22/2011 12:26 PM, bindsocket wrote:
> > Dont know if this is even possible but I have a healthcheck file
> > that is checked by a load balancer every 30 seconds. However, I
> > really do not want the webserver to be logging this. Is there some
> > way to configure the server to ignore a file or directory as far as
> > the logging is concerned??
> >
> > Running nginx 0.7.65 on Ubuntu 10.04
> >
>
>
> I don't know if it's the best way to configure a healthcheck, but:
>
> location = /healthcheck_nginx.html {
> access_log off;
> root /usr/share/nginx/html;
> index healthcheck_nginx.html;
> }
>
>
> hope this helps.

"index healthcheck_nginx.html" is useless here: it's required for
requests with trailing slash, but this location works only for
"/healthcheck_nginx.html".

Also "root" probably can be inherited from server level.


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

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

Need to exclude file from server logs

bindsocket February 22, 2011 10:26AM

Re: Need to exclude file from server logs

burningbunny February 22, 2011 10:33AM

Re: Need to exclude file from server logs

vt February 22, 2011 10:34AM

Re: Need to exclude file from server logs

Flavio Torres February 22, 2011 10:40AM

Re: Need to exclude file from server logs

Igor Sysoev February 22, 2011 03:12PM

Re: Need to exclude file from server logs

bindsocket February 24, 2011 02:39PM

Re: Need to exclude file from server logs

António P. P. Almeida February 22, 2011 11:02AM

Re: Need to exclude file from server logs

bindsocket February 22, 2011 11:02AM

Re: Need to exclude file from server logs

Igor Sysoev February 22, 2011 03:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 289
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready