eddieace
170
1
Forge

Nginx error if I activate LetsEncrypt certificate and all sites becomes disabled

Posted 2 years ago by eddieace

Hello fellow Forge Enthusiasts!

I have a problem that if I obtain a LetsEncrypt certificate and activate it something in my nginx configuration returns an error. It also makes all my sites on that server deactivated.

This happens when I try to restart nginx.

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
nginx.service is not active, cannot reload.

I wish I could show you how my nginx config in sites-enabled would look like but I have obtained to many already.

I wonder if anyone knows what could be wrong? Could anyone link a working nginx config?

I host all my sites on a AWS EC2 Instance.

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

Reply to

Use Markdown with GitHub-flavored code blocks.