From e7f978398d8cc1b012e811da877c27b0da36d9fa Mon Sep 17 00:00:00 2001 From: vlaborie Date: Thu, 20 Sep 2018 16:40:34 +0200 Subject: [PATCH] Fix stretch --- HowtoLetsEncrypt.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/HowtoLetsEncrypt.md b/HowtoLetsEncrypt.md index 02d62937..18754b0f 100644 --- a/HowtoLetsEncrypt.md +++ b/HowtoLetsEncrypt.md @@ -73,16 +73,26 @@ Alias /.well-known/acme-challenge /var/lib/letsencrypt/.well-known/acme-challeng #### Nginx -Configuration : +Configuration Jessie : ~~~ -location /.well-known/acme-challenge { +location ~ /.well-known/acme-challenge { alias /var/lib/letsencrypt/.well-known/acme-challenge; try_files $uri =404; allow all; } ~~~ +Configuration Stretch : + +~~~ +location ~ /.well-known/acme-challenge { + alias /var/lib/letsencrypt/ + try_files $uri =404; + allow all; +} +~~~ + ## Génération du certificat