Hallo Stefan

Am 15.02.2011 19:09, schrieb slamby:
Hintergrundinfo gibt es hier:
http://backreference.org/2009/12/17/name-based-ssl-virtual-hosts-in-apache/

... Server Name Indication

Den Part verstehe ich nicht. Ich hab probiert ihn an den Anfang meiner Konfiguration, also in die Datei die bei den sites-enabled in alphabetischer Reihenfolge zuerst kommt zu packen.

Listen 80
# if you do non-SSL virtual hosts
NameVirtualHost *:80

<IfModule mod_ssl.c>
    Listen 443
    # Now this has the full right to be here ...
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    NameVirtualHost *:443
</IfModule>
...


Ergebnis:
* Starting web server apache2 [Tue Feb 15 20:14:31 2011] [warn] NameVirtualHost *:443 has no VirtualHosts
[Tue Feb 15 20:14:31 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs


Jetzt frage ich mich, wozu wird es gebraucht und was führt zu der Fehlermeldung? Und wird es überhaupt gebraucht: "To do SNI, Apache is configured exactly in the same way as before, except a different certificate (and key) is specified for each virtual host:"


Ich glaube eher ich muss das Zertifikat anders erstellen und irgendwie die SNI Daten da rein bringen. Hab google nach "sni zertifikat erstellen" befragt und erklärt bekommen wie man Zertifikate erstellt.

Ich geb auf. Lass mich weiter anmeckern, dass mein Zertifikat nicht auf die Domain passt.


Gruß
     Ernst

--
----------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org

Antwort per Email an