15 lines
281 B
Text
15 lines
281 B
Text
|
server {
|
||
|
listen 80 default_server;
|
||
|
#listen [::]:80 default_server;
|
||
|
server_name _;
|
||
|
|
||
|
location /.well-known/acme-challenge/ {
|
||
|
autoindex on;
|
||
|
root /webroot-for-acme-challenge;
|
||
|
}
|
||
|
|
||
|
location / {
|
||
|
return 301 https://$host$request_uri;
|
||
|
}
|
||
|
}
|