Skip to content

Instantly share code, notes, and snippets.

@cleot
Created September 4, 2016 14:07
Show Gist options
  • Save cleot/9506d956edc9f01476379ef0b989715a to your computer and use it in GitHub Desktop.
Save cleot/9506d956edc9f01476379ef0b989715a to your computer and use it in GitHub Desktop.
letsencrypt acme challange + host https redirect
location /.well-known/acme-challenge {
default_type "text/plain";
root /var/www/letsencrypt;
}
location / {
return 301 https://$server_name$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment