Give the options to allow dotfiles other than '.ht*', third try.
This commit is contained in:
parent
05103a008b
commit
12e63b3968
|
@ -38,7 +38,8 @@ server {
|
|||
log_not_found off;
|
||||
return 404;
|
||||
}
|
||||
{% elif nginx_block_dangerous_dotfiles %}
|
||||
{% else %}
|
||||
{% if nginx_block_dangerous_dotfiles %}
|
||||
location ~ /\.(?ht).* {
|
||||
deny all;
|
||||
access_log off;
|
||||
|
@ -256,7 +257,8 @@ server {
|
|||
log_not_found off;
|
||||
return 404;
|
||||
}
|
||||
{% elif nginx_block_dangerous_dotfiles %}
|
||||
{% else %}
|
||||
{% if nginx_block_dangerous_dotfiles %}
|
||||
location ~ /\.(?ht).* {
|
||||
deny all;
|
||||
access_log off;
|
||||
|
|
Loading…
Reference in New Issue