Commit 94053d84 authored by Joshua Tauberer's avatar Joshua Tauberer

Merge pull request #317 from bizonix/master

Disable viewing dotfiles (.htaccess, .svn, .git, etc.)
parents 15061112 e14b2826
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment