use regexp instead to ignore

This commit is contained in:
jkaberg 2014-09-10 22:19:43 +02:00
parent f375aab733
commit 7960f2ba2c
1 changed files with 4 additions and 5 deletions

View File

@ -20,11 +20,6 @@
location ~ ^/(data|config|\.ht|db_structure\.xml|README) { location ~ ^/(data|config|\.ht|db_structure\.xml|README) {
deny all; 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)(/.*)?$ { location ~ ^(/cloud)(/[^/]+\.php)(/.*)?$ {
# note: ~ has precendence over a regular location block # note: ~ has precendence over a regular location block
@ -47,6 +42,10 @@
internal; internal;
alias $STORAGE_ROOT/owncloud; 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).*)$ { location ~ ^/((caldav|carddav|webdav).*)$ {
# Z-Push doesn't like getting a redirect, and a plain rewrite didn't work either. # Z-Push doesn't like getting a redirect, and a plain rewrite didn't work either.
# Properly proxying like this seems to work fine. # Properly proxying like this seems to work fine.