Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save EmbeddedAndroid/3d40dc719465eaca97f0e408607c2cee to your computer and use it in GitHub Desktop.
Save EmbeddedAndroid/3d40dc719465eaca97f0e408607c2cee to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
server_name [domain-name] www.[domain-name];
server_tokens off;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://[domain-name]$request_uri;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment