Creating subdomain with Vesta CP and DigitalOcean

Thyoity picture Thyoity · Sep 18, 2014 · Viewed 25.6k times · Source

I'm trying to configure but everytime I access domain.mysite.com.br keeps showing me the not found error. www.mysite.com.br is redirecting me correct. Only the subdomain is not.

This is my vesta configurations: This is my vesta configurations

Digital ocean DNS configuration Digital ocean DNS configuration

My ftp is showing the new subdomain folder correctly My ftp is showing the new subdomain folder correctly

Am I configuring Digital Ocean DNS wrong? OBS: My server IP is not 111.111.1.111, I edited in Photoshop for security.

Sorry, my English is not good.

Answer

Lafif Astahdziq picture Lafif Astahdziq · Sep 24, 2014

You can create a subdomain in vesta cp with the following steps :

  • Create DNS Record for your domain (maisrp.com.br) on vestacp menu, the type of record is CNAME that pointed to your droplet IP address. Enter subdomain that you want to add on record section (i.e mysubdomain)

Create DNS Record for your subdomain

  • Add a new domain through Vesta Cp with full address (i.e mysubdomain.maisrp.com.br)

Add new domain

I have tried this, and work