By dkwan
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!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
For this, you should be using DigitalOcean’s DNS exclusively, and setting up your subdomain there as well.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.