Skip to content

Instantly share code, notes, and snippets.

@danielpotthast
Last active May 26, 2018 06:37
Show Gist options
  • Save danielpotthast/23f46ef564d7ca99cf7aabb74e264055 to your computer and use it in GitHub Desktop.
Save danielpotthast/23f46ef564d7ca99cf7aabb74e264055 to your computer and use it in GitHub Desktop.
NGINX – HTTP-Konfiguration
server {
listen 80;
listen [::]:80;
server_name sitename.tld;
location ^~ /.well-known/acme-challenge/ {
alias /var/www/letsencrypt/.well-known/acme-challenge/;
}
location / {
rewrite ^ https://www.sitename.tld$request_uri? permanent;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment