Modify dotfile regex so that it skips over paths including .php files.
This commit is contained in:
parent
d6f26609fc
commit
d4002338dd
|
@ -54,8 +54,8 @@ server {
|
||||||
alias /var/lib/mailinabox/mozilla-autoconfig.xml;
|
alias /var/lib/mailinabox/mozilla-autoconfig.xml;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Disable viewing dotfiles (.htaccess, .svn, .git, etc.)
|
# Disable viewing dotfiles (.htaccess, .svn, .git, etc.), but not under php-controlled pages
|
||||||
location ~ /\.(ht|svn|git|hg|bzr) {
|
location ~ ^/(?!.*\.php).*/\.(ht|svn|git|bzr)$ {
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
deny all;
|
deny all;
|
||||||
|
|
Loading…
Reference in New Issue