mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-11-19 10:06:00 +01:00
replace return 403 with deny all for data subdir in nginx
This commit is contained in:
1 parent
cb1a9dfad9
commit
c1a178e1f5
1 file changed
+1
-2
@@ -27,8 +27,7 @@
|
||||
alias /usr/local/lib/rainloop/;
|
||||
}
|
||||
location ~ /mail/data/.* {
|
||||
# A ~-style location is needed to give this precedence over the next block.
|
||||
return 403;
|
||||
deny all;
|
||||
}
|
||||
location ~ /mail/.*\.php {
|
||||
# note: ~ has precendence over a regular location block
|
||||
|
||||
Reference in new issue
Block a user