1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-21 03:02:09 +00:00
This commit is contained in:
Tibor Blaho 2017-05-07 20:02:14 +00:00 committed by GitHub
commit 15aeb8ac17

View File

@ -26,9 +26,19 @@
index index.php; index index.php;
alias /usr/local/lib/roundcubemail/; alias /usr/local/lib/roundcubemail/;
} }
location ~ /mail/config/.* { location ~ ^/mail/(config|temp|logs|bin|SQL)/ {
# A ~-style location is needed to give this precedence over the next block. deny all;
return 403; }
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 { location ~ /mail/.*\.php {
# note: ~ has precendence over a regular location block # note: ~ has precendence over a regular location block