https redirect with acme-challenge
consider the acme-challenge with https redirect
Dieser Commit ist enthalten in:
Ursprung
b1d6106663
Commit
bf9952d9f4
1 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen
|
@ -8,7 +8,15 @@ Open `data/conf/nginx/site.conf` and add a new site at the top of that file:
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
include /etc/nginx/conf.d/server_name.active;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren