-
-
Save dg01d/ae98f4ed581e53a90b7b to your computer and use it in GitHub Desktop.
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
# 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