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