Report this

What is the reason for this report?

Second virtual host (can't find redirect)

Posted on April 6, 2021

I have set up a second virtual host on a LAMP stack droplet from Digital Ocean.

I have changed the /etc/apache2/sites-available/www.example.com.conf to my new domain.

My DNS records: A to IP, A to IP with www, AAAA to IP, AAAA to IP with www, 3 ns to Digital Ocean. I have pointed the DNS to digital Ocean from Namecheap.

Weird thing is when entering the domain it gets redirected to my first site on this droplet. It tries to connect and write the domain in the browser. I can’t find from where. A site I have deleted a long time ago. I have deleted it in /etc/apache2/sites-available/www.example.com.conf

My /etc/hosts:

127.0.0.1 localhost 127.0.0.1 username

Any help to figur how I get the new virtual host to point to the correct site will be greatly appreciated, thanks!

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.