Nginx: [emerg] host not found in "None" of the "listen" directive in /etc/nginx/sites-enabled/


I’m unable to create a certificate for my new server, a process I have conducted successfully many times before. I have filled out the details below. Please help. I cant see to be able to figure this out. :-/

My domain is:

I ran this command:
sudo certbot --nginx -d -d *

It produced this output:

Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/
nginx: [emerg] host not found in “None” of the “listen” directive in /etc/nginx/sites-
Rolling back to previous server configuration…
nginx restart failed:

My web server is (include version):
nginx version: nginx/1.15.9 (Ubuntu)

The operating system my web server runs on is (include version):
Ubuntu 19.04

My hosting provider, if applicable, is:
Digital Ocean

I can login to a root shell on my machine (yes or no, or I don’t know):

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
certbot 0.37.1

Can you paste the contents of /etc/nginx/sites-enabled/

Additionally, can you find the modified Nginx server block in Certbot’s logs in /var/log/letsencrypt/letsencrypt.log?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.