Apache Config Warning: _default_ VirtualHost overlap on port 80, the first has precedence

I need to create a website for my friend’s hotel and also for my personal blog, the one you are reading now.

So I created a virtual host for my friend as following.

and I restarted the server.

sudo /etc/init.d/httpd restart

Everything works fine

I created another virtual host for myself

I got the warning:

So I uncommented the

in the httpd.conf file

The warning disappeared now.