From 16b52d2cb43511b346ed5d3f9e2528d996fc05ee Mon Sep 17 00:00:00 2001 From: Carla Schroder Date: Thu, 20 Aug 2015 10:50:24 -0700 Subject: [PATCH] how to suppress useless log messages in nginx --- admin_manual/installation/nginx_configuration.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/admin_manual/installation/nginx_configuration.rst b/admin_manual/installation/nginx_configuration.rst index dab388b92..4d19056a2 100644 --- a/admin_manual/installation/nginx_configuration.rst +++ b/admin_manual/installation/nginx_configuration.rst @@ -118,3 +118,17 @@ Nginx Configuration - Remove **fastcgi_params HTTPS on;** .. note:: If you are using php-fpm please read :ref:`using_php-fpm` + +Suppressing Log Messages +------------------------ + +If you're seeing meaningless messages in your logfile, for example `client +denied by server configuration: /var/www/data/htaccesstest.txt +_`, add this section to +your Nginx configuration to suppress them:: + + location = /data/htaccesstest.txt { + allow all; + log_not_found off; + access_log off; + } \ No newline at end of file