0

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

Image showing connection over http

Image showing connection over https

New contributor
Guy Stephane is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
2
  • 1
    Hello, I'v check curl -v https://api.anexiums.com and it seems like some error happens LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version First you can run on VPS to check which process listen :443 port sudo ss -tulpn | grep :443 # or sudo netstat -tulpn | grep :443 also you can check your nginx config. Share here, it can help clarify the issue. Commented 19 hours ago
  • 1
    You did not enable SSL/TLS protocol on port 443, see askubuntu.com/questions/1553116/nginx-not-providing-certificate Commented 18 hours ago

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.