https redirect with acme-challenge

consider the acme-challenge with https redirect
Dieser Commit ist enthalten in:
apoc4lyps 2017-08-05 16:03:03 +02:00 committet von GitHub
Ursprung b1d6106663
Commit bf9952d9f4

Datei anzeigen

@ -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;
}
}
```