From 7960f2ba2c3a044c5e4bbaea2e88ab2ee72ae31f Mon Sep 17 00:00:00 2001 From: jkaberg Date: Wed, 10 Sep 2014 22:19:43 +0200 Subject: [PATCH] use regexp instead to ignore --- conf/nginx-primaryonly.conf | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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.