Skip to content

Instantly share code, notes, and snippets.

@lashae
Last active May 25, 2017 18:59
Show Gist options
  • Save lashae/fc681b9f083a77aa40d8d80a90652ebf to your computer and use it in GitHub Desktop.
Save lashae/fc681b9f083a77aa40d8d80a90652ebf to your computer and use it in GitHub Desktop.
Nginx LetsEncrypt Configuration
server {
listen 0.0.0.0:80;
listen [::]:80;
server_name alanadi-1.com alanadi-2.com alanadi-3.com;
server_tokens off;
access_log /var/log/nginx/le_access.log;
error_log /var/log/nginx/le_error.log;
location /.well-known/ {
alias /var/www/letsencrypt/.well-known/;
}
location / {
return 301 https://$http_host:$request_uri;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment