diff --git a/conf/nginx-primaryonly.conf b/conf/nginx-primaryonly.conf index 321194ad..f39db20c 100644 --- a/conf/nginx-primaryonly.conf +++ b/conf/nginx-primaryonly.conf @@ -15,6 +15,11 @@ location ~ ^/(data|config|\.ht|db_structure\.xml|README) { deny all; } + location ~ /remote.php/ { + # Don't log requests that uses DAV (results in heavy spam) + log_not_found off; + access_log off; + } } location ~ ^(/cloud)(/[^/]+\.php)(/.*)?$ { # note: ~ has precendence over a regular location block @@ -41,6 +46,9 @@ # Z-Push doesn't like getting a redirect, and a plain rewrite didn't work either. # Properly proxying like this seems to work fine. proxy_pass https://$HOSTNAME/cloud/remote.php/$1; + + # Don't log requests that uses DAV (results in heavy spam) + access_log off; } rewrite ^/.well-known/host-meta /cloud/public.php?service=host-meta last; rewrite ^/.well-known/host-meta.json /cloud/public.php?service=host-meta-json last;