return 301 nginx and acme challenge

server {
# ...
location /.well-known/acme-challenge/ {
# put your configuration here, if needed
}
location / {
return 301 https://$server_name$request_uri;
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *