docker-letsencrypt-webroot icon indicating copy to clipboard operation
docker-letsencrypt-webroot copied to clipboard

Nginx not working with ssl

Open brunul opened this issue 7 years ago • 1 comments

Is there any exemple to configure nginx to work properly with ssl? I'm trying to configure nginx to work with ssl certs, but when ssl is active nginx does not receive connections, when i disable ssl, its works perfectly.

my nginx.conf events { worker_connections 1024; }

http { server { listen domain.my; listen 443 ssl; server_name domain.my www.domain.my;

location / {
  # Just return a blank response
  return 200;
}

location '/.well-known/acme-challenge' {
      default_type "text/plain";
      root        /tmp/letsencrypt;
  }

  # Enable SSL
  ssl_certificate /etc/letsencrypt/live/domain.my/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/domain.my/privkey.pem;

} }

brunul avatar Jul 26 '18 15:07 brunul

I'm not sure this is an issue with this specific repo. Do you still need help? My Nginx config is very different from your code so...

vdhpieter avatar Mar 13 '20 12:03 vdhpieter