Subdomain on different server


I have a registered domain in Cloudlflare, hosted on Cloudways.
Now I want to add a subdomain to point to a different server (vultr) to host an api for example.
I’ve added an ‘A’ record for the subdomain pointing to vultr’s ip but it doesn’t seem to work. Do I need to do anything else?

Also, what about the SSL certificate? The SSL is added and set by Cloudways to the domain and all it’s subdomains.
Do I need to set only to the domain, and create a separate ssl for that specific subdomain? Any guidance on this as-well would be appreciated.


Can you elaborate more on “doesn’t seem to work”? Any screenshot of the error or can share what should be the expected output?

Hi, thanks for the quick reply.

I get the typical Cloudflare’s Connection timed out, Error code 522

I should see a json format of the server I’m running on vultr, as I see directly via ip + port

When trying via subdomain + port - I get " This site can’t be reached" page…

Try switch your SSL encryption mode to Full (strict), assuming that you already have a valid SSL certificate in your server.

Already set to full, have ssl on cloudways.
Not set on vultr, as I wrote…

You need to obtain a certificate on your Vultr host that covers its name.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.