Hello I am in a situation and unable to figure out a solution. My client have 2 domains. One is running with a website and other with webservices from API directory. Now client wants to have both on a single domain. I have done that but i am unable to map the website and api directory both with ip address. For example, website is mapped on domain.com and web services on api.domain.com. my domains are purchased at GoDaddy and hosted at AWS amazon. How can I make them both working and also have them SSL certificate?
I have added A records for the domain and the sub-domain in Godaddy DNS manager and also configured both these domains using Virtual hosts on the AWS. My root website is working just fine, however, the sub-domain is taking me to the root website, but I need it to take me to the 'api' directory.