You are probably missing server block files (virtual hosts) in a site-enabled folder. Check if your configuration files exist in /etc/nginx/sites-available
and /etc/nginx/sites-enabled
. If they are not present in the site support folder, create symbolic links for them:
$ sudo ln -s /etc/nginx/sites-available/my.domain.com /etc/nginx/sites-enabled/
Add your site, check for configuration errors and restart nginx:
$ sudo certbot --nginx -d my.domain.com $ sudo nginx -t $ sudo service nginx restart
source share