NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Apache with VitualHost ?
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 webmaster%caloro.ch@localhost
> > > [...]
> > > </VirtualHost>
> > >
> > > <VirtualHost *:80>
> > > ServerAdmin webmaster%homeshine.ch@localhost
> > > [...]
> > > </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 <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index