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

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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

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