Give the options to allow dotfiles other than '.ht*', 5th try.

This commit is contained in:
Andrea Dell'Amico 2024-05-03 18:41:30 +02:00
parent fca15f343f
commit 47fa70ebb3
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 3 deletions

View File

@ -38,8 +38,7 @@ server {
log_not_found off;
return 404;
}
{% endif %}
{% if not nginx_block_dotfiles and nginx_block_dangerous_dotfiles %}
{% elif nginx_block_dangerous_dotfiles %}
location ~ /\.(?ht).* {
deny all;
access_log off;
@ -258,7 +257,7 @@ server {
return 404;
}
{% endif %}
{% if not nginx_block_dotfiles and nginx_block_dangerous_dotfiles %}
{% elif nginx_block_dangerous_dotfiles %}
location ~ /\.(?ht).* {
deny all;
access_log off;