Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
nginx default server for getting all LetsEncrypt certificates
server {
listen 80 default_server;
server_tokens off;
access_log off;
location ^~ /.well-known/acme-challenge/ {
alias /usr/share/nginx/html/letsencrypt/.well-known/acme-challenge/;
location / {
return 307 https://$host$request_uri;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment