Disable viewing dotfiles (.htaccess, .svn, .git, etc.)
This commit is contained in:
parent
150611123a
commit
e14b2826e0
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue