I am having a hosting server and i want to create a sub domain for apis hosted on same server.What i want is suppose I have my domain name
domain.com and want to have sub domain
api.domain.com and set a folder path
/public_html/api for it to load APIs.What I did is created a sub domain in
Domains/subdomains section in cpanel and set folder path there and then created a
CNAME pointing to IP of my server. But unfortunately when I open it, it gives me error
**Internal Server Error**.
Please suggest what need to do for configurations?