Report this

What is the reason for this report?

Help me point domain to my droplet

Posted on July 19, 2017

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 ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

I do have the same problem with our droplet (Ubuntu 16.04 LAMP), and the solutions above didn’t work…

I’ve created the configs following the example above in /etc/apache2/sites-available/*.conf and did a2ensite in both of them, but still with no luck.

The DNS records are correctly laid out, but the browser still returns “Can’t reach this page”…

What could I be doing wrong?

I had the same problem and @hansen solution worked for me.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.