mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-09-12 00:18:59 +02:00
use regexp instead to ignore
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user