1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-22 03:06:55 +00:00
This commit is contained in:
brocktice 2015-05-30 17:27:42 +00:00
commit 1f55f3268f

View File

@ -54,8 +54,9 @@ server {
alias /var/lib/mailinabox/mozilla-autoconfig.xml; alias /var/lib/mailinabox/mozilla-autoconfig.xml;
} }
# Disable viewing dotfiles (.htaccess, .svn, .git, etc.)
location ~ /\.(ht|svn|git|hg|bzr) { # Disable viewing dotfiles (.htaccess, .svn, .git, etc.), but not under php-controlled pages
location ~ ^/(?!.*\.php).*/\.(ht|svn|git|bzr)$ {
log_not_found off; log_not_found off;
access_log off; access_log off;
deny all; deny all;