replace return 403 with deny all for data subdir in nginx
This commit is contained in:
parent
cb1a9dfad9
commit
c1a178e1f5
|
@ -27,8 +27,7 @@
|
||||||
alias /usr/local/lib/rainloop/;
|
alias /usr/local/lib/rainloop/;
|
||||||
}
|
}
|
||||||
location ~ /mail/data/.* {
|
location ~ /mail/data/.* {
|
||||||
# A ~-style location is needed to give this precedence over the next block.
|
deny all;
|
||||||
return 403;
|
|
||||||
}
|
}
|
||||||
location ~ /mail/.*\.php {
|
location ~ /mail/.*\.php {
|
||||||
# note: ~ has precendence over a regular location block
|
# note: ~ has precendence over a regular location block
|
||||||
|
|
Loading…
Reference in New Issue