2 months ago

Can't enable Let's Encrypt SSL cert when using nginx redirect

Posted 2 months ago by bwrice

I have a production site that's not ready yet located at and while it's not ready I want it to redirect to the beta repo site located at the subdomain I've edited the top of my sites nginx file on Forge (for to look as follows:

listen 80;
listen [::]:80;
return 301$request_uri;

The redirect works fine, however my SSL cert now fails to renew and I get the "Your connection is not private" warning when trying to access How can I redirect to the beta site and still have a valid SSL certificate?

Please sign in or create an account to participate in this conversation.