mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
how to suppress useless log messages in nginx
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user