Skip to content

Instantly share code, notes, and snippets.

@r33int
Created October 21, 2018 11:13
Show Gist options
  • Save r33int/e1f00a5d79faf8936e2900b79855f148 to your computer and use it in GitHub Desktop.
Save r33int/e1f00a5d79faf8936e2900b79855f148 to your computer and use it in GitHub Desktop.
0-letsencrypt.conf #nginx
server {
listen 80;
listen [::]:80;
server_name kawata.pw;
location '/.well-known/acme-challenge' {
default_type "text/plain";
root /var/www;
}
location / {
return 301 https://$server_name$request_uri;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment