Requests will be going to the first VirtualHost
that has either a ServerName
or ServerAlias
that matches the requested hostname (including wildcards like *.example.com
). If you don't have any matches, they'll be going to the first-defined VirtualHost
.
Since editing 000-default
hasn't made any difference, I presume you've got a more-specific VirtualHost
somewhere.
grep -r example.com /etc/apache/
should help you find the file it's in (obviously, replace example.com
as necessary).
Also, you can do the following to see a list of all your VirtualHost
s:
APACHE_RUN_USER=www-data APACHE_RUN_GROUP=www-data /usr/sbin/apache2 -S
(EDIT: or, indeed, just apache2ctl -S
)