From bf9952d9f4879ea97475b76cc3a2cb1d15b63d78 Mon Sep 17 00:00:00 2001 From: apoc4lyps Date: Sat, 5 Aug 2017 16:03:03 +0200 Subject: [PATCH] https redirect with acme-challenge consider the acme-challenge with https redirect --- docs/u_e-80_to_443.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/u_e-80_to_443.md b/docs/u_e-80_to_443.md index b2b66108f..cdb86a5ad 100644 --- a/docs/u_e-80_to_443.md +++ b/docs/u_e-80_to_443.md @@ -8,7 +8,15 @@ Open `data/conf/nginx/site.conf` and add a new site at the top of that file: server { listen 80 default_server; include /etc/nginx/conf.d/server_name.active; - return 301 https://$host$request_uri; + + location ~ /\.well-known\/acme-challenge { + allow all; + default_type "text/plain"; + } + + location / { + return 301 https://$server_name$request_uri; + } } ```