certbot: restore compatibility with old Nginx

This commit is contained in:
Jérémy Lecour 2020-06-03 18:24:40 +02:00 committed by Jérémy Lecour
parent 9aed38b637
commit 3bd0a4ffb3
2 changed files with 6 additions and 0 deletions

View file

@ -27,6 +27,8 @@ The **patch** part changes incrementally at each release.
### Fixed
* certbot: restore compatibility with old Nginx
### Removed
### Security

View file

@ -1,5 +1,9 @@
location ~ /.well-known/acme-challenge {
{% if ansible_distribution == "Debian" and ansible_distribution_major_version is version('8', '<=') %}
alias {{ certbot_work_dir }}/.well-known/acme-challenge;
{% else %}
alias {{ certbot_work_dir }}/;
{% endif %}
try_files $uri =404;
allow all;
}