I have a droplet with VestaCP installed on it, several clients have their sites there.
Now I want to point a subdomain to one of those site (actually it’s also my site). I try a lot of differente setups but without luck.
Let’s say that the site is example.com and I want to access the same site from app.example.com. What should I do? Do I only need to change DigitailOcean DNS records, or it’s only done in Vesta or maybe in both?
What I’ve tryed: 1- Create a CNAME in DigitalOcean named app that is an alias of example.com (the problem of doing this is that it takes me to the default site in vesta not the one I want)
2- Create a new WebSite in Vesta named app.example.com and DigitalOcean create a A record named app.example.com that points to my droplet ip
3- Create a CNAME recrord in Vesta, in the DNS section of example.com
I’m a newbie on this, I’ve read a lot that leads me to the test I made but I can’t make it work
Thank you!
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!
Hey friend,
VestaCP does not have any way to do this without either cloning the site into a second directory or manually changing your web server configurations. Manually changing your web server configurations should only be an action that you take when you no longer wish to use a control panel like VestaCP, as you need the two to be in sync to ensure that problems do not arise later.
Jarland
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.