Well, I might be wrong here, but with the current configuration I'm unable to make other vhosts than the default one work. I have set -D DEFAULT_VHOST, and here is how my /etc/apache2/vhosts.d/ looks like: 00_default_vhost.conf host.domain.tld.conf host.domain.tld.conf has the following configuration: <VirtualHost *:80> ServerName host.domain.tld DocumentRoot /var/www/host.domain.tld/htdocs [...] </VirtualHost> If I left 00_default_vhost.conf untouched, and try to access http://host.domain.tld/, I get the default vhost webpage (Seeing this...?). Strange. Now if I add, say, "ServerName localhost" inside the default vhost configuration in 00_default_vhost.conf, I can access the host.domain.tld htdocs thru http://host.domain.tld/, and the default vhost pages thru http://host/ or http://ip.ad.dre.ss/, as expected. Tested with apache-2.0.54-r31. Thoughts?
This may be stating the obvious, but did you remember to restart apache? The page may also be cached locally in your browser. Name based vhosts work as follows: Apache uses the Host: HTTP header If there is a vhost that has a ServerName or ServerAlias directive, it uses that vhost. If there is no vhost that explicetly states that, it uses the first vhost it finds that doesn't have a ServerName defined. If the case of gentoo, it should be the vhost in 00_default_vhost.conf (as long as -D DEFAULT_VHOST is in APACHE2_OPTS).
Unable to reproduce and no response from the reporter. Closing.