krestensb
By:
krestensb

Help me point domain to my droplet

July 19, 2017 145 views
Apache Ubuntu 16.04

I need help to connect my domain to my droplet:

I have installed apache on my ubuntu 14.04.2 droplet. Its running fine on http://188.226.136.142/

I have a domain skovstedconsulting.dk pointed to ns1.digitalocean.com, ns2.digitalocean.com and ns3.digitalocean.com
I made the change 12 hours ago

I have followed this tutorial without any luck: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts

In /etc/apache2/sites-enabled I have the following:

<VirtualHost *:80>
ServerAdmin krestensb@gmail.com
ServerName skovstedconsulting.dk
ServerAlias www.skovstedconsulting.dk
DocumentRoot /var/www/skovstedconsulting/html
ErrorLog ${APACHELOGDIR}/error.log
CustomLog ${APACHELOGDIR}/access.log combined
</VirtualHost>

and in /var/www/skovstedconsulting/html i have a file index.html

Now I should see my index.html when looking at www.skovstedconsulting.dk, but I can't load the page.

Any help or hints would be very much appreciated.

Best regards Kresten

1 Answer
hansen July 19, 2017
Accepted Answer

Hi @krestensb

I can see that your domain is using the DigitalOcean name servers, so far so good, but it doesn't seem like you've created A record pointing to your droplet's IP address.

Go to https://cloud.digitalocean.com/networking/domains and add your domain, and create an A record for @ pointing to your droplet's IP and then create a CNAME record for www pointing to skovstedconsulting.dk

Your Apache configuration looks correct, so let's ignore that until the DNS is done.

For a more detailed DNS tutorial with a few pictures:
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-with-digitalocean

by Etel Sverdlov
This article walks you through setting up the DNS for your site. The tutorial includes steps to set up an A records, point your nameservers, and provides some information about MX records.
  • Hi @Hansen, Thank you for the answer!

    Now it looks like this:

    A skovstedconsulting.dk directs to 188.226.136.142 3600
    CNAME www.skovstedconsulting.dk is an alias of skovstedconsulting.dk 43200
    skovstedconsulting.dk directs to ns1.digitalocean.com 1800

    skovstedconsulting.dk directs to ns2.digitalocean.com 1800
    skovstedconsulting.dk directs to ns3.digitalocean.com 1800

    Still no effect, but I expect I should wait some hours for the change to take effect?

    • @krestensb

      I'm seeing this now: Velkommen til Skovsted Consulting

      So it might just be your local DNS cache in your browser, computer or router.
      Try rebooting your computer - otherwise just wait an hour.

Have another answer? Share your knowledge.