Skip to content

Instantly share code, notes, and snippets.

@danielpotthast
Last active May 26, 2018 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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