1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

Disable viewing dotfiles (.htaccess, .svn, .git, etc.)

This commit is contained in:
BiZoNiX 2015-02-09 19:41:42 +02:00
parent 150611123a
commit e14b2826e0

View File

@ -54,6 +54,13 @@ server {
alias /var/lib/mailinabox/mozilla-autoconfig.xml;
}
# Disable viewing dotfiles (.htaccess, .svn, .git, etc.)
location ~ /\.(ht|svn|git|hg|bzr) {
log_not_found off;
access_log off;
deny all;
}
# Roundcube Webmail configuration.
rewrite ^/mail$ /mail/ redirect;
rewrite ^/mail/$ /mail/index.php;