On Thu, Feb 16, 2006 at 04:17:41PM +0000, Craig Webster wrote:
> On 16 Feb 2006, at 15:39, Maik Musall wrote:
> > Using *:80 and *:443 at all NameVirtualHost and VirtualHost places, or
> > using *:80 and *:443 with NameVirtualHost and concrete IP addresses  
> > with
> > VirtualHost directives, I get:
> >
> > # /usr/sbin/apache2 -S
> > [Thu Feb 16 16:36:16 2006] [warn] NameVirtualHost *:80 has no  
> > VirtualHosts
> > VirtualHost configuration:
> > Syntax OK
> >
> > Although syntax is reported to be "OK" I'm still worried by the  
> > warnings
> > that my setup is flawed. Can anybody give me a hint?
> 
> Do you have a VirtualHost for *:80 ie
> <VirtualHost *:80>
>    ServerName localhost.localdomain
> </VirtualHost>

Yes. By saying "Using *:80 and *:443 at all NameVirtualHost and
VirtualHost places" I meant that also the VirtualHost sections use
"<VirtualHost *:80>".

> You should get a default virtual host by adding -D DEFAULT_VHOST to / 
> etc/conf.d/apache2.

# grep ^APACHE2_OPTS /etc/conf.d/apache2
APACHE2_OPTS="-D DEFAULT_VHOST -D PHP4 -D PYTHON -D SSL -D SSL_DEFAULT_VHOST -D 
USERDIR"

-- 
Maik Musall <[EMAIL PROTECTED]>
GPG public key 0x856861EB (keyserver: wwwkeys.de.pgp.net)
-- 
[email protected] mailing list

Reply via email to