Skip to content

Instantly share code, notes, and snippets.

@caseydriscoll
Created June 29, 2017 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caseydriscoll/d7fecd99a3c479731c794778a428ee7a to your computer and use it in GitHub Desktop.
Save caseydriscoll/d7fecd99a3c479731c794778a428ee7a to your computer and use it in GitHub Desktop.
Nginx Global Redirect File for Let's Encrypt
location /.well-known/acme-challenge/ {
try_files $uri /dev/null =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