If you’re performing server redirects, last redirect will be the one that sends response to the browser. If your certificate is valid everything should work.
How did you go about registering for SSL? I’ve used Let’s Encrypt and had to generate one my self via SSH. I had to generate a certificate for both
www.domain.com could this be your issue. Try making a redirect to the url you know certificate works.
Here’s my Nginx config and the flow is:
- listen on port 80 for both
non-wwwand redirect to
- listen on port 443
wwwand redirect to
- listen on port 443 for
non-wwwand return response
Hope that helps,