mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-22 03:06:55 +00:00
Merge 53ffb38159
into 49aa367ffa
This commit is contained in:
commit
1f55f3268f
@ -54,8 +54,9 @@ server {
|
||||
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;
|
||||
access_log off;
|
||||
deny all;
|
||||
|
Loading…
Reference in New Issue
Block a user