Hallo,
ich hätte eine grundsätzliche Frage zur Konfiguration von Apache. Meine momentane Config:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName nougad
DocumentRoot /var/www/
…
NameVirtualHost *:443
<Virtualhost *:443>
ServerName nougad
DocumentRoot /var/www/
…
NameVirtualHost *:443
<VirtualHost *:443>
ServerName svn.nougad
DocumentRoot /var/svn-repo/
…
Beim starten von Apache bekomme ich folgende Meldungen:
[Mon Feb 18 22:21:32 2008] [warn] NameVirtualHost *:443 has no VirtualHosts [Mon Feb 18 22:21:42 2008] [warn] NameVirtualHost *:443 has no VirtualHosts
Außerdem steht in der apache2/error.log folgendes:
[Mon Feb 18 22:21:32 2008] [notice] caught SIGTERM, shutting down [Mon Feb 18 22:21:42 2008] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Mon Feb 18 22:21:42 2008] [warn] RSA server certificate CommonName (CN) `name' does NOT match server name!? [Mon Feb 18 22:21:42 2008] [warn] Init: SSL server IP/port conflict: nougad:443 (/etc/apache2/sites-enabled/ssl:2) vs. svn.nougad:443 (/etc/apache2/sites-enabled/svn:2) [Mon Feb 18 22:21:42 2008] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Mon Feb 18 22:21:43 2008] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Mon Feb 18 22:21:43 2008] [warn] RSA server certificate CommonName (CN) `name' does NOT match server name!? [Mon Feb 18 22:21:43 2008] [warn] Init: SSL server IP/port conflict: nougad:443 (/etc/apache2/sites-enabled/ssl:2) vs. svn.nougad:443 (/etc/apache2/sites-enabled/svn:2) [Mon Feb 18 22:21:43 2008] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Mon Feb 18 22:21:43 2008] [notice] Apache/2.2.3 (Ubuntu) DAV/2 SVN/1.4.3 PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
Allerdings funktioniert alles. Ich werde daraus nicht so ganz schlau. Liegt das daran das ich das selbe certificate für domain und subdomain verwende?
Ich hoffe jemand weiß Rat. Habe in der Apache Doku nichts gefunden.
Danke schon mal!
nougad

2004 – 2011 ubuntuusers.de • Einige Rechte vorbehalten