Skip to content

Instantly share code, notes, and snippets.

@danielpotthast
Last active May 26, 2018 06:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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