Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: lafayette-parish.com
I ran this command: sudo certbot --nginx
It produced this output: nginx restart failed: 2026/05/12 19:02:07 [emerg] 2407#2407: a duplicate listen 0.0.0.0:443 in /etc/nginx/conf.d/lafayette-parish.com.conf
My web server is (include version): linode? and/or nginx --version: 1.26.3
The operating system my web server runs on is (include version): Debian GNU/Linux Trixie
My hosting provider, if applicable, is: Linode and/or Akamai
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): sometimes/WSL2 Debian Trixie
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 5.6.0
Okay...
So, I write my nginx file in /etc/nginx/conf.d/ and then apply nginx -t and then the command nginx -s reload. Everything seems okay and then when applying the command sudo certbot --nginx, I receive this error mostly:
nginx restart failed:
2026/05/12 19:02:07 [emerg] 2407#2407:
a duplicate listen 0.0.0.0:443 in /etc/nginx/conf.d/lafayette-parish.com.conf:12
Do I know how to fix it? No...
I have been working on this error for about a week and have new details on this webserver.
The one thing I changed is from Ubuntu to Debian and used some other firewall outside of ufw.
Please send guidance.