Give the options to allow dotfiles other than '.ht*', second try.
This commit is contained in:
parent
4999eaa896
commit
05103a008b
|
@ -39,7 +39,7 @@ server {
|
|||
return 404;
|
||||
}
|
||||
{% elif nginx_block_dangerous_dotfiles %}
|
||||
location ~ /\.ht.* {
|
||||
location ~ /\.(?ht).* {
|
||||
deny all;
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
|
@ -257,7 +257,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