Hello everyone.
My server is running on Ubuntu and the web server is provided by Nginx. The web server provides access to an API I have developed.
Everything worked when I was not using SSL certificate.
I needed to secure the communication, so I installed the certificate using Certbot.
Everything went perfectly. But, when I tried to reach my server using Chrome or Firefox and all I got was a time-out.
I have read this post : Server connection timing out when after getting certificate
So I did the following:
curl -Ii api.gordios.app
HTTP/1.1 301 Moved Permanently
Server: nginx/1.18.0 (Ubuntu)
Date: Thu, 19 Sep 2024 12:44:51 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: https://api.gordios.app/
I checked my Nginx configuration, everything seemed OK:
sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
I checked my firewall:
sudo ufw status
Status: active
To Action From
-- ------ ----
Nginx HTTP ALLOW Anywhere
OpenSSH ALLOW Anywhere
Nginx HTTP (v6) ALLOW Anywhere (v6)
OpenSSH (v6) ALLOW Anywhere (v6)
And finally, I checked the error.log, but it is empty.
I also checked my DNS configuration on OVH. I have the CAA field like this:
api.gordios.app. 0 CAA 0 issue "letsencrypt.org"
I am lost.
Any assistance would be appreciated.
Mandatory information
My domain is: api.gordios.com
My web server is (include version): Nginx 1.18.0
The operating system my web server runs on is (include version): Ubuntu 22.04.4
My hosting provider, if applicable, is: OVH
I can login to a root shell on my machine: yes (using sudo)
I'm using a control panel to manage my site : no
The version of my client (certbot) is 2.11.0