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)
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
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!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!