dont log excessive dav related requests

This commit is contained in:
jkaberg 2014-09-10 22:12:16 +02:00
parent c87da5330c
commit 487e0d64e2
1 changed files with 8 additions and 0 deletions

View File

@ -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;