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

December 4, 2016 210 views
DigitalOcean Ubuntu 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.

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
Have another answer? Share your knowledge.