Question

Domain name only works for a few minutes

Posted October 3, 2014 2.5k views

Hello, im new here at DO, and i love it but, yesterday i just installed my apache and configured its virtualhost, then i setup ns in my domain provider and here in DO for domain www.checkmart.cl but its works only a few minutes and then stop working. I check that apache is running fine. If i enter with the ip address it works but not with the domain. Also if a ping checkmart.cl works fine.

Thank You and please help me :(

——-EDIT——

work fine with checkmart.cl, but not with www

2 comments
  • www.checkmart.cl does not exist, according to the resolvers I tried.

  • I think what you need is a CNAME.
    Log on to your Digital Ocean control panel,
    Go to the DNS section,
    on the domain in question, add a CNAME
    in the “name” field enter WWW and in the “Enter host name” field type @.
    This is assuming you have and A record already set with @ pointing to your IP address. if you didn’t add that as well.
    Hope that resolves your issue.

    NOTE: You need to give it some time to propagate.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

A cname already exists now (i think you followed @DarkSaint’s suggestion) and i can see that both work now (www, and without www). What i’d suggest you use a htaccess to redirect either the requests to http://www.checkmart.cl to http://checkmart.cl or vice-versa.

Submit an Answer