Mobile app version of vmapp.org
Login or Join
Harper822

: Internal server error after setting up subdomain on Godaddy 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

@Harper822

Posted in: #Cpanel #Dns #Subdomain

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Harper822

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kimberly868

The message (Internal Server Error) means your hosting server issued a 5xx code to the client browser. This code indicates that the browser contacted the server but there was a problem serving content.

Although it's difficult to tell, it sounds like you've configured the DNS correctly but your server isn't configured to reply to the request.

You'll need to set Apache/Nginx/IIS up with a new virtual domain and point that to the resource folder. As you're doing an API, I imagine that will involve setting up a CGI (common gateway interface) with the program serving the API content.

Your next steps in setup would depend on your server / intended API program.

For a LAMP stack on Godaddy, follow these instructions:


Install a LAMP stack.
Setup a virtual host for api.example.com, and point it to your API directory.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme