mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-21 03:02:09 +00:00
Merge 8cac4cd5e7
into 2caddb41eb
This commit is contained in:
commit
15aeb8ac17
@ -26,9 +26,19 @@
|
||||
index index.php;
|
||||
alias /usr/local/lib/roundcubemail/;
|
||||
}
|
||||
location ~ /mail/config/.* {
|
||||
# A ~-style location is needed to give this precedence over the next block.
|
||||
return 403;
|
||||
location ~ ^/mail/(config|temp|logs|bin|SQL)/ {
|
||||
deny all;
|
||||
}
|
||||
location ~ ^/mail/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
|
||||
deny all;
|
||||
}
|
||||
location ~ ^/mail/(.+\.md|composer\.json.*|package\.xml|Dockerfile)$ {
|
||||
deny all;
|
||||
}
|
||||
location ~ ^/mail/\. {
|
||||
deny all;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
location ~ /mail/.*\.php {
|
||||
# note: ~ has precendence over a regular location block
|
||||
|
Loading…
Reference in New Issue
Block a user