diff --git a/conf/nginx-primaryonly.conf b/conf/nginx-primaryonly.conf index 47d1bd9f..db353d36 100644 --- a/conf/nginx-primaryonly.conf +++ b/conf/nginx-primaryonly.conf @@ -20,11 +20,6 @@ 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 @@ -47,6 +42,10 @@ internal; alias $STORAGE_ROOT/owncloud; } + location ~ ^/cloud/remote.php/(caldav|webdav|carddav)(.*)$ { + # Don't log requests that uses DAV (results in heavy spam) + access_log off; + } location ~ ^/((caldav|carddav|webdav).*)$ { # Z-Push doesn't like getting a redirect, and a plain rewrite didn't work either. # Properly proxying like this seems to work fine.