Server IP doesn’t bring me to default “Apache is functioning normally” page

apache-2.2

Suddenly the default website shown when going to my server IP isn't the default site (Apache-site) but rather a random domain located on the server.
I'm not quite sure what caused it but I no longer get the ''Apache is functioning normally'' message when directly inputting my server IP-adress.

I've been reading up on it and it seems like a problem with a Vhost, (Please correct me if this is not how I solve the problem ) but I can't seem to locate it.

How can I fix my configuration so accessing the server by IP returns the default site?

Best Answer

If you have any virtual hosts configured, do not have one for "default" connections, and you request a site that doesn't exist on the server (by IP or any domain name there is no vhost for) you will get the first virtual host configured (order may vary depending on many things).

If you post the parts of your configuration relevant to the global site and configured virtual hosts, we may be able to help you resolve the issue.

Related Topic