1 |
> -----Original Message----- |
2 |
> From: Maik Musall [mailto:lists@××××××.de] |
3 |
> |
4 |
> |
5 |
> httpd.conf: no VirtualHost directives |
6 |
> |
7 |
> vhosts.d/00_one.com.conf: |
8 |
> NameVirtualHost 1.1.1.1:80 |
9 |
> <VirtualHost 1.1.1.1:80> |
10 |
> ServerName one.com |
11 |
> </VirtualHost> |
12 |
> |
13 |
> vhosts.d/01_two.com.conf: |
14 |
> NameVirtualHost 2.2.2.2:80 |
15 |
> <VirtualHost 2.2.2.2:80> |
16 |
> ServerName two.com |
17 |
> </VirtualHost> |
18 |
> |
19 |
> vhosts.d/02_three.com.conf: |
20 |
> # no NameVirtualHost directive since it's already in |
21 |
> # 01_two.com.conf, this still confuses me |
22 |
> <VirtualHost 2.2.2.2:80> |
23 |
> ServerName three.com |
24 |
> </VirtualHost> |
25 |
> |
26 |
> modules.d/41_mod_ssl.default-vhost.conf: |
27 |
> NameVirtualHost 1.1.1.1:443 |
28 |
> NameVirtualHost 2.2.2.2:443 |
29 |
> <VirtualHost 1.1.1.1:443> |
30 |
> ServerName one.com |
31 |
> </VirtualHost> |
32 |
> <VirtualHost 2.2.2.2:443> |
33 |
> ServerName two.com |
34 |
> </VirtualHost> |
35 |
> |
36 |
> With this setup, I always get the following warning: |
37 |
> |
38 |
> # /usr/sbin/apache2 -S |
39 |
> [Thu Feb 16 16:34:15 2006] [warn] NameVirtualHost 1.1.1.1:80 has no |
40 |
> VirtualHosts |
41 |
> [Thu Feb 16 16:34:15 2006] [warn] NameVirtualHost 2.2.2.2:80 has no |
42 |
> VirtualHosts |
43 |
> VirtualHost configuration: |
44 |
> Syntax OK |
45 |
> |
46 |
|
47 |
I suspect it may be that you are defining NameVirtualHost 1.1.1.1:443 and NameVirtualHost 2.2.2.2:443. You cannot do name based virtual hosting using SSL. I'd try taking out those two definitions (and make sure you have a Listen 443 somewhere in your config). You may also want to disable all SSL definitions to begin with to make sure your name based vhosts are working properly on port 80 (i.e. take out -D SSL and -D SSL_DEFAULT_VHOST). At that point, I'd move onto configuring SSL. |
48 |
|
49 |
-Chris Schwerdt |
50 |
|
51 |
|
52 |
-- |
53 |
gentoo-server@g.o mailing list |