On Sat, Oct 26, 2013 at 03:11:53PM +0100, Matthias Scheler wrote: > > > [Snip-http.conf] > > > # Virtual hosts > > > Include etc/httpd/httpd-vhosts.conf > > > > > > [Snip-http-Vhost.conf] > > > NameVirtualHost *:80 > > > > > > <VirtualHost *:80> > > > ServerAdmin webmas...@caloro.ch > > > [...] > > > </VirtualHost> > > > > > > <VirtualHost *:80> > > > ServerAdmin webmas...@homeshine.ch > > > [...] > > > </VirtualHost> > > > > You don't want 2 default virtualhost. > > Change the second one to > > <VirtualHost homeshine.ch:80> > > I have to disagree. "VirtualHost" only defines which listen address a > virtual host applied to. And "*" means all of them which is definitely > correct here. > > I'm using "VirtualHost *:80" respectively "VirtualHost *:443" for all > virtual hosts with Apache 2.4 without problems. The same configuration > worked fine when I was still using Apache 2.2.
I'm using NameVirtualHost, this may be the difference. I guess it matches the Host HTTP header against ServerName then ? -- Manuel Bouyer <bou...@antioche.eu.org> NetBSD: 26 ans d'experience feront toujours la difference --