Hello friends,
I'm stuck setting up an apache with the following properties:
one.com is on 1.1.1.1:80 and 1.1.1.1:443
two.com is on 2.2.2.2:80 and 2.2.2.2:443
three.com is also on 2.2.2.2:80, no SSL
I maintain two different ssl certificates for the two SSL hosts, that's
the reason I have two different IP addresses for them.
I tried several configuration variants. The VirtualHost setup I supposed
to be the most correct is as follows:
httpd.conf: no VirtualHost directives
vhosts.d/00_one.com.conf:
NameVirtualHost 1.1.1.1:80
<VirtualHost 1.1.1.1:80>
ServerName one.com
</VirtualHost>
vhosts.d/01_two.com.conf:
NameVirtualHost 2.2.2.2:80
<VirtualHost 2.2.2.2:80>
ServerName two.com
</VirtualHost>
vhosts.d/02_three.com.conf:
# no NameVirtualHost directive since it's already in
# 01_two.com.conf, this still confuses me
<VirtualHost 2.2.2.2:80>
ServerName three.com
</VirtualHost>
modules.d/41_mod_ssl.default-vhost.conf:
NameVirtualHost 1.1.1.1:443
NameVirtualHost 2.2.2.2:443
<VirtualHost 1.1.1.1:443>
ServerName one.com
</VirtualHost>
<VirtualHost 2.2.2.2:443>
ServerName two.com
</VirtualHost>
With this setup, I always get the following warning:
# /usr/sbin/apache2 -S
[Thu Feb 16 16:34:15 2006] [warn] NameVirtualHost 1.1.1.1:80 has no VirtualHosts
[Thu Feb 16 16:34:15 2006] [warn] NameVirtualHost 2.2.2.2:80 has no VirtualHosts
VirtualHost configuration:
Syntax OK
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?
Thanks
Maik
--
Maik Musall <[EMAIL PROTECTED]>
GPG public key 0x856861EB (keyserver: wwwkeys.de.pgp.net)
--
[email protected] mailing list