IP address of droplet still points to removed virtual host file.

Posted December 4, 2016 3k views
DigitalOceanUbuntu 16.04

The IP address of my droplet still points to a domain (was a redirection), I already removed (a couple of days ago) that .conf file. I reloaded and restarted the apache2 service, but still my IP points to that certain domain. I looked at the default .conf and other files but I can’t find any answer, why it’s still doing that redirection.

Thanks in advance.

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.

Submit an Answer
2 answers

What do you mean? Does your domain redirects to an IP?
Did you disable the config file? Please be more specific and post files.

Try checcking if the site is still enabled in the /etc/apache2/sites-enabled directory. You can do that by

ls /etc/apache2/sites-enabled

If the site is still enabled, delete it:

sudo rm /etc/apache2/sites-enabled/site.conf

Then reload Apache:

sudo service apache2 reload