I am trying to setup subdomains for my AWS EC2 ubuntu instance, but without enough knowledge I couldn't proceed anymore.
- I have a parked domain name example.com on a domain name service provider.
- My EC2 instance has Elastic IP associated, say 10.10.10.10
I created two A Recoards in the domain name service provider's website.
www.example.com points to 10.10.10.10
example.com points to 10.10.10.10
- everything is working like a charm , i can access my Instance with the domain name.
But now I would like to have subdomain for individual websites/services for the instance, say webmail.example.com, database.example.com.
I tried to setup Virtual Host file for sub-domains, but it didn't work when I accessed those subdomains , chrome said "Oops! Google Chrome could not find subdoamin.example.com"
Q: My question is, how can I set up subdomains for my server?
Thanks in advance.