dkwan
By:
dkwan

How do I set subdomain with Vesta?

June 23, 2015 1.4k views
DNS Configuration Management Ubuntu

Hello,

I have installed Vesta CP on my droplet (Ubuntu 14.04). I have also gotten my site working at the main domain – let's call it example.com.

I'd like to set up a separate web site at sub.example.com and use the same Vesta installation as the control panel for both.

Here are my current configs:

In my domain registrar (hover.com), I have the nameservers set to Digital Oceans' (ns1.digitalocean.com, ns2.digitalocean.com, ns3.digitalocean.com).

In Digital Ocean, under DNS, I have example.com there. Opening its details shows this:
A @ 1.2.3.4 (droplet's IP address)
CNAME www example.com.
NS ns1.digitalocean.com.
NS ns2.digitalocean.com.
NS ns3.digitalocean.com.

In Vesta, under DNS, I have added example.com, and also added an A Record for sub.example.com as part of example.com's records. For its IP, I put the droplet's IP.

Still in Vesta, under Web, I have added example.com and sub.example.com as separate web sites.

In my web browser, I am able to reach example.com but not sub.example.com. Same for FTP – example.com works but not sub.example.com.

Any idea what I'm doing wrong?

Also, should I be adding the subdomain A Record in Vesta's DNS section or in Digital Ocean's DNS section? Which one takes precedence, or how do I know which one is being used?

Much thanks in advance!

1 Answer

For this, you should be using DigitalOcean's DNS exclusively, and setting up your subdomain there as well.

Have another answer? Share your knowledge.