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??
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:
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??
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:
On Tue, Feb 22, 2011 at 12:37:11PM -0300, Flavio Torres wrote:
Running nginx 0.7.65 on Ubuntu 10.04
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.