-
-
Save lyda/04db8c70cd9b29234225 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
#Server declaration for non-encrypted port 80 | |
server { | |
listen 80; | |
server_name mysite.com www.mysite.com; | |
location /.well-known/acme-challenge/ { | |
root /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