how to suppress useless log messages in nginx

This commit is contained in:
Carla Schroder
2015-08-20 10:50:24 -07:00
parent 549cb10735
commit 16b52d2cb4

View File

@@ -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
<https://forum.owncloud.org/viewtopic.php?f=17&t=20217>_`, add this section to
your Nginx configuration to suppress them::
location = /data/htaccesstest.txt {
allow all;
log_not_found off;
access_log off;
}