I need your guidance on something, please.
I recently bought my domain name (anexiums.com) and hosting from asurahosting, and then created a subdomain (api.anexiums.com) which I'm supposed to deploy my backend on.
I’ve deployed my app’s frontend on https://anexiums.com through DirectAdmin, and now I want to deploy the backend on api.anexiums.com and the backend is running on my VPS.
I’ve created an A type DNS record to point to my VPS on DirectAdmin, and then I’ve deployed the backend over api.anexiums.com, but it keeps running only over HTTP.
I have installed SSL certificates for it, but it refuses to run over https and I need it to run over https in order to avoid CORS.
The required ports are allowed on the VPS.
When I use curl to test the connection over https on the VPS, I get a success response, but when I test out of the VPS, I keep getting error.
If I’m able to resolve this issue once, then it’ll never bother me again. I’ve spent days on it now, but haven’t figured out why, even with the help of AI tools.
I haven’t changed the namespace configs on my profile on asurahosting, and neither have I created any DNS records on asurahosting.
I only have 1 DNS record of type A on DirectAdmin, pointing to the VPS for api.anexiums.com.
I've attached images showing what I got when I visit http://api.anexiums.com and when I visit https://api.anexiums.com
curl -v https://api.anexiums.comand it seems like some error happensLibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol versionFirst you can run on VPS to check which process listen :443 portsudo ss -tulpn | grep :443 # or sudo netstat -tulpn | grep :443also you can check your nginx config. Share here, it can help clarify the issue.