Fix the dotfiles regexp.
This commit is contained in:
parent
98d49b2ed3
commit
907c17af04
|
@ -27,7 +27,7 @@ server {
|
|||
return 404;
|
||||
}
|
||||
{% elif nginx_block_dangerous_dotfiles %}
|
||||
location ~ /\.(?ht).* {
|
||||
location ~ /\.ht.* {
|
||||
deny all;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
|
@ -243,7 +243,7 @@ server {
|
|||
return 404;
|
||||
}
|
||||
{% elif nginx_block_dangerous_dotfiles %}
|
||||
location ~ /\.(?ht).* {
|
||||
location ~ /\.ht.* {
|
||||
deny all;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
|
|
Loading…
Reference in New Issue