Skip to content

Instantly share code, notes, and snippets.

@lyda
Forked from dg01d/www
Last active January 23, 2016 09:13
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 lyda/04db8c70cd9b29234225 to your computer and use it in GitHub Desktop.
Save lyda/04db8c70cd9b29234225 to your computer and use it in GitHub Desktop.
#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