Updated based on recommendations from .htaccess

This commit is contained in:
Tibor Blaho 2016-03-31 21:28:59 +02:00
parent 5210db9e8b
commit 8cac4cd5e7
1 changed files with 2 additions and 5 deletions

View File

@ -26,16 +26,13 @@
index index.php;
alias /usr/local/lib/roundcubemail/;
}
location ~ ^/mail/(config|temp|logs)/ {
location ~ ^/mail/(config|temp|logs|bin|SQL)/ {
deny all;
}
location ~ ^/mail/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
deny all;
}
location ~ ^/mail/(bin|SQL)/ {
deny all;
}
location ~ ^/mail/(.+\.md)$ {
location ~ ^/mail/(.+\.md|composer\.json.*|package\.xml|Dockerfile)$ {
deny all;
}
location ~ ^/mail/\. {