dont log excessive dav related requests
This commit is contained in:
parent
c87da5330c
commit
487e0d64e2
|
@ -15,6 +15,11 @@
|
||||||
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
|
||||||
|
@ -41,6 +46,9 @@
|
||||||
# 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.
|
||||||
proxy_pass https://$HOSTNAME/cloud/remote.php/$1;
|
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 /cloud/public.php?service=host-meta last;
|
||||||
rewrite ^/.well-known/host-meta.json /cloud/public.php?service=host-meta-json last;
|
rewrite ^/.well-known/host-meta.json /cloud/public.php?service=host-meta-json last;
|
||||||
|
|
Loading…
Reference in New Issue