Challenge failed for domain certbot nginx

Debian 10+nginx
I request a certificate with the command
sudo / usr / local / bin / certbot-auto --nginx and see fail:

nginx: [warn] conflicting server name “domain.com ” on 0.0.0.0:80, ignored
Waiting for verification…
Challenge failed for domain domain.com 
http-01 challenge for domain.com 
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:

The problem has been resolved. I remove listen 80; from sites-enable config and it work!

This website uses cookies We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.