NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Apache with VitualHost ?



> > [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.

        Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/


Home | Main Index | Thread Index | Old Index