Troubleshooting two domains pointing to the same droplet

August 18, 2014 1.5k views

Hi All

I have two domains and I'm trying to drop the hosting I have for one of these and point it towards my existing DigitalOcean droplet.

Currently I have set up and functional and a virtual host set up for

I'm trying to point to a virtual host in my droplet reading source files from /var/www/ I've have a conf file "" for the sites enabled (I registered it as well) with a configuration

<VirtualHost *:80>

    ServerAdmin webmaster@localhost

    DocumentRoot /var/www/

    <Directory /var/www/>
        AllowOverride All

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined


I've changed the name servers for to point at DigitalOcean and have zone files with matching A records pointing to my droplet.

A @    

for both of them.

I'm a little stuck right now. I've tried a number of tutorials but I haven't seen one that's been able to help me with this.

I suspect its a DNS problem but I don't know what to do to solve it. Can someone please help?

2 Answers

Sometimes DNS changes can take a while to propagate. It looks like it is working ...How long ago did you make the changes?

  • I made the changes on August 14th. I've never really had to mess around with DNS before so I can't tell if it takes time to propagate or I'm doing something wrong.

    If I wanted to connect to a virtual server on my droplet is an A record the correct way to do that?

Have another answer? Share your knowledge.