Skip to content

Instantly share code, notes, and snippets.

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