maurer
By:
maurer

how to configure my droplet to respond with a subdomain

September 29, 2014 1.6k views

Hello,

I have a domain name pointing to a certain server, I configured the A record for the subdomain (cursos.mydomain.com.mx) to point to the IP of my droplet in digitalocean. My droplet name is the same as the subdomain (cursos.mydomain.com.mx) and I added the same as the domain in the DNS configuration on the panel.

If I go to my site cursos.mydomain.com.mx it shows an error that you can only access the server by the IP and redirects to the site showing the IP not the subdomain.

So there must be a way to configure it and show the subdomain but so far I haven't found the solution.

Please help.

Regards,
Maurer

2 comments
  • The fact that you are shown an error page and redirected to the IP address implies that your DNS records are configured correctly. If they were not, it wouldn't resolve at all. What software are you using? Any details that you could provide will help us answer your question.

  • Nevermind, I'm running moodle and it seems that is a problem of it, not the server. Thank you for your help.

2 Answers

This question was answered by @maurer:

Nevermind, I'm running moodle and it seems that is a problem of it, not the server. Thank you for your help.

You can see the comment here.

Have another answer? Share your knowledge.