Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save satchinjoshi/ce0d7cc410b3485ab1fe7fd9e421e70e to your computer and use it in GitHub Desktop.

Select an option

Save satchinjoshi/ce0d7cc410b3485ab1fe7fd9e421e70e to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
server_name xyz.com;
location '/.well-known/acme-challenge' {
default_type "text/plain";
root /var/www/letsencrypt;
}
location / {
return 301 https://$server_name$request_uri;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment