Skip to content

Instantly share code, notes, and snippets.

@dg01d
Last active January 23, 2016 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dg01d/ae98f4ed581e53a90b7b to your computer and use it in GitHub Desktop.
Save dg01d/ae98f4ed581e53a90b7b to your computer and use it in GitHub Desktop.
# inside the ssl server block - no idea WHY this worked, but it DID:
location ~ /.well-known {
allow all;
}
#Server declaration for non-encrypted port 80
server {
listen 80;
server_name mysite.com www.mysite.com;
location /.well-known/acme-challenge/ {
alias /var/www/challenges/;
try_files $uri =404;
}
location / {
return 301 https://$host$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment