12080
Goto Top

NameVirtualHost mehrere SSLs mit Gnutls

Hallo,

ich möchte auf einem Webserver für mehrere Seiten verschiedene SSL Zertifikate nutzen.
Um den IPv4 Pool nicht unnötig zu belasten, wollte ich das über das Modul Gnutls machen.

Ich habe ein Debian Lenny als OS mit einen Apache 2.2.9.

Problem:

Es wird immer nur der 1. Virtualhost geladen. Die anderen danach werden ignoriert.

/etc/apache2/sites-enabled/ssl.conf
NameVirtualHost *:443

<VirtualHost *:443>
	ServerName domain1.de
	ServerAlias *.domain1.de
	ServerAdmin admin@domain.de
	
	GnuTLSEnable on
	GnuTLSPriorities NORMAL
	GnuTLSCertificateFile  /etc/apache2/ssl/domain1.crt
	GnuTLSKeyFile  /etc/apache2/ssl/domain1.key	
	
	DocumentRoot /var/customers/webs/domain1/shop/
</VirtualHost>

<VirtualHost *:443>
	ServerName domain2.de
	ServerAlias *.domain2.de
	ServerAdmin admin@domain.de
	
	GnuTLSEnable on
	GnuTLSPriorities NORMAL
	GnuTLSCertificateFile  /etc/apache2/ssl/domain2.crt
	GnuTLSKeyFile  /etc/apache2/ssl/domain2.key

	DocumentRoot /var/customers/webs/domain2/shop/
</VirtualHost>

<VirtualHost *:443>
	ServerName domain3.de
	ServerAlias *.domain3.de
	ServerAdmin admin@domain.de
	
	GnuTLSEnable on
	GnuTLSPriorities NORMAL
	GnuTLSCertificateFile  /etc/apache2/ssl/domain3.crt
	GnuTLSKeyFile  /etc/apache2/ssl/domain3.key
	 
	DocumentRoot /var/customers/webs/domain3/shop/
</VirtualHost>

Hoffe es hat jemand eine Idee
lg Kazi

Content-Key: 174588

Url: https://administrator.de/contentid/174588

Printed on: April 18, 2024 at 13:04 o'clock

Member: StefanKittel
StefanKittel Oct 12, 2011 at 23:23:18 (UTC)
Goto Top
Hallo,

schau doch mal hier: http://isp-control.net/documentation/howto:multiple_ssl_certificates_on ...

Du weißt aber schon, dass das nicht mit allen Browsern geht?

Ich habs ein paar mal probiert, aber dann doch sein gelassen.
IPV6 komme

Stefan
Mitglied: 12080
12080 Oct 13, 2011 at 07:02:23 (UTC)
Goto Top
Hallo,

danke für die Antwort. Habe das Tutorial noch einmal mit meiner Config verglichen, das Problem bleibt aber weiter bestehen.
Ich bin mir auch nicht sicher, ob es ein Problem mit dem GnuTls oder dem Apache ist.

Denn im Grunde wählt ja der Apache immer nur den ersten VirtualHost aus und scheint den ServerName zu ignorieren.

Hoffe jemand hat eine zündene Idee.
lg Kazi