I have a domain that is chat.adm.br with several subdomains with certs enabled in my ubuntu server with nginx. Now I'm trying to enable HTTPS for another domain equiparcarrocerias.com.br AND www.equiparcarrocerias.com.br . It used to work in the past, not sure why it's not working now.
This is probably relevant: this exact same setup worked and loaded the site, then the company that hosts the DNS servers for the EQUIPAR domain had errors, and the provider just changed the domain DNS server IPs. Before it broke, this site worked normally. Now with the new DNS servers and the DNS pointing to the correct server ip, it gives this dns error. I just regenerated all certificates.
The certificate generation went smoothly:
My Steps:
- Had chat.adm.br and subomains configured
- Added equiparcarrocerias.com.br and www.equiparcarrocerias.com.br (they point to the correct server ip checked with DNSChecker)
- certs generated normally, opted with "Expand" certificate
- equiparcarrocerias shows DNS_PROBE_FINISHED_NXDOMAIN error
The NGINX file just points directly to the /var/www/equipar/index.htm file, it worked normally before. I'm not sure if this is the problem but in the equiparcarrocerias.com.br NGINX file the certificate seems to be from the other site, chat.adm.br, but I guess this file includes the equiparcarrocerias certificate keys. Is this correct, or should the EQUIPARCARROCERIAS nginx file include a separate certificate just for this site? Image of what I'm talking about:
My domain is: chat.adm.br AND equiparcarrocerias.com.br
I ran this command: sudo certbot --nginx
It produced this output: OK generated all certs normally. Used "Expand" option
My web server is (include version): nginx version: nginx/1.18.0 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-105-generic x86_64)
My hosting provider, if applicable, is: Hetzner
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): no
The version of my client is (e.g. output of `certbot --version` or `certbot-auto --version` if you're using Certbot): 2.10.0