Created
June 29, 2017 23:16
-
-
Save caseydriscoll/d7fecd99a3c479731c794778a428ee7a to your computer and use it in GitHub Desktop.
Nginx Global Redirect File for Let's Encrypt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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