Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How do I set subdomain with Vesta?
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 @ 188.8.131.52 (droplet’s IP address)
CNAME www example.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!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×