Nginx Configuration Issues - Certificate Obtained but not used by NGINX

I can’t find any server_name allianceinfosec.com www.allianceinfosec.com in your “SSL Configuration” server {} block.

Oh and root /var/www/html;… Like… All the things that would make up a usable server {} block are missing from the SSL server block…

No wonder nginx can’t load your HTTPS site: it isn’t configured at all. You’ve all the things correct for your site on port 80, but you left out everything important at the port 443 piece. You just added the SSL things. But by leaving all the important stuff out, like root and server_name, nginx doesn’t do anything with the ssl server block. It is never used.

You should make a “copy” of the port 80 server block and modify it for TLS by changing the listen directive and adding the SSL stuff… Not only implementing the SSL stuff, no, add the SSL stuff to all the regular directives.

2 Likes