I'm doing some development work for a client, and I'm eventually going to have to install a full LAMP stack server at their site.
Given the latter requirement, I'm doing the development work on an ec2 instance. I'd like them to be able to access the dev site as subdomain.mydomain.com, where mydomain.com is a domain that is hosted here at DH.
Can I just do the following and everything will work? Or am I missing something?
1) create the subdomain (in the Panel)
2) create a CNAME record pointing to the ec2 public IP (in the Panel)
3) create a VirtualHost block for subdomain.mydomain.com (on the ec2 instance)