I don't know how to solve this issue i deleted the past certs i thought the issue there but somthing is redirecting nginx i don't know where..
sudo certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
No certificates found.
root@ubuntu-s-1vcpu-2gb-70gb-intel-sfo2-01:~# sudo certbot certonly --standalone -d adv-cap.sa -d api.adv-cap.sa
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for adv-cap.sa and api.adv-cap.sa
Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:
Domain: api.adv-cap.sa
Type: unauthorized
Detail: 134.209.3.5: Invalid response from https://api.adv-cap.sa/.well-known/acme-challenge/AHd7JGv-P4bwkunuNG1K-IvkLYQkcK_74BrWyhxZbcU: 404
Domain: adv-cap.sa
Type: unauthorized
Detail: 134.209.3.5: Invalid response from https://adv-cap.sa/.well-known/acme-challenge/RyDepGNh3nd_3EBi7ua7kcZZ2jLGQAF--ag2mo3EVYY: 404
Hint: The Certificate Authority failed to download the challenge files from the temporary standalone webserver started by Certbot on port 80. Ensure that the listed domains point to this machine and that it can accept inbound connections from the internet.
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My domain is: adv-cap.sa , api.adv-cap.sa
I ran this command:
standalone, webroot, i also edited default files in nginx but same isssue
It produced this output:
curl -i http://adv-cap.sa/.well-known/ac
me-challenge/test.txt
HTTP/1.1 301 Moved Permanently
Server: nginx/1.29.4
Date: Fri, 03 Apr 2026 11:44:20 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Location: https://adv-cap.sa/.well-known/acme-challenge/test.txt
301 Moved Permanently
nginx/1.29.4
My web server is (include version): Ubuntu 24.04 (LTS) x64
The operating system my web server runs on is (include version):
nginx
My hosting provider, if applicable, is:
digitalocean
I can login to a root shell on my machine (yes or no, or I don't know): droplet
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):