Page 1 of 1

Subdomain shows wrong domain

Posted: Fri Nov 23, 2018 2:51 am
by sebasira
Hello!

I have Vesta installed in DigitalOcean and it's working fine. But I'm not able to create a subdomain for the sites I have.

Let's say my site si example.com and I want to reach it by entering app.example.com. I've try several ways but everything I've try lead me to the admin's site not to example.com.

Imagine my aadmin site is admin-site.com and it's the same web I get if i put my server IP on the browser. When I put app.example.com it shows me the content of admin-site.com instead of example.com

The things I've tryed:
A- Create an A-record in DigitalOcean (inside example.com domain) named app that point's to my droplet

B- Create a CNAME-recrod in DigitalOcean (inside example.com domain) named app that is an alias of example.com

C- In VestaCP under WEB section edit example.com and in Aliasses added app.example.com in a new line

What do I need to do to achieve my goal? Thank you very much!