Gentoo Archives: gentoo-server

From: Maik Musall <lists@××××××.de>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Apache vhosts IP/name-based with SSL
Date: Thu, 16 Feb 2006 16:32:16
Message-Id: 20060216162612.GB15396@musall.de
In Reply to: Re: [gentoo-server] Apache vhosts IP/name-based with SSL by Craig Webster
1 On Thu, Feb 16, 2006 at 04:17:41PM +0000, Craig Webster wrote:
2 > On 16 Feb 2006, at 15:39, Maik Musall wrote:
3 > > Using *:80 and *:443 at all NameVirtualHost and VirtualHost places, or
4 > > using *:80 and *:443 with NameVirtualHost and concrete IP addresses
5 > > with
6 > > VirtualHost directives, I get:
7 > >
8 > > # /usr/sbin/apache2 -S
9 > > [Thu Feb 16 16:36:16 2006] [warn] NameVirtualHost *:80 has no
10 > > VirtualHosts
11 > > VirtualHost configuration:
12 > > Syntax OK
13 > >
14 > > Although syntax is reported to be "OK" I'm still worried by the
15 > > warnings
16 > > that my setup is flawed. Can anybody give me a hint?
17 >
18 > Do you have a VirtualHost for *:80 ie
19 > <VirtualHost *:80>
20 > ServerName localhost.localdomain
21 > </VirtualHost>
22
23 Yes. By saying "Using *:80 and *:443 at all NameVirtualHost and
24 VirtualHost places" I meant that also the VirtualHost sections use
25 "<VirtualHost *:80>".
26
27 > You should get a default virtual host by adding -D DEFAULT_VHOST to /
28 > etc/conf.d/apache2.
29
30 # grep ^APACHE2_OPTS /etc/conf.d/apache2
31 APACHE2_OPTS="-D DEFAULT_VHOST -D PHP4 -D PYTHON -D SSL -D SSL_DEFAULT_VHOST -D USERDIR"
32
33 --
34 Maik Musall <maik@××××××.de>
35 GPG public key 0x856861EB (keyserver: wwwkeys.de.pgp.net)
36 --
37 gentoo-server@g.o mailing list