Could not reverse map the HTTPS Virtual Host to the original Unable to install the certificate

ChAiN SaW

Lieutenant
Registriert
Apr. 2011
Beiträge
946
Hallo,

ich wollte gerade per LetsEncrypt meine Website SSL fähig machen. Ich benutze Wordpress auf Debian 9 mit Apache.
Ich habe für beide Website eine eigene .conf in sites-available angelegt.

Leider bekomme ich beim ausführen des Befehls folgenden Fehler.

Code:
certbot --authenticator webroot --installer apache -w /var/www/html/robertkram.com -d robertkram.com -d www.robertkram.com

Code:
Could not reverse map the HTTPS VirtualHost to the original

IMPORTANT NOTES:
 - Unable to install the certificate
 - Congratulations! Your certificate and chain have been saved at:

Die Datei robertkram.com-ssl.conf sieht wie folgt aus:
Code:
<VirtualHost *:80>
    ServerAdmin robaer@tuta.io
    ServerName robertkram.com
    ServerAlias www.robertkram.com
    DocumentRoot /var/www/html/robertkram.com
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
 
<Directory /var/www/html/robertkram.com>
        Options FollowSymLinks   
        AllowOverride All
        Require all granted
</Directory>

Wie bekomme ich es hin das er es automatisch konfiguriert und beantragt so wie hier in Variante 1: https://www.bennetrichter.de/anleitungen/lets-encrypt-linux/
 
Fuer SSL muesstet du aber noch einen <VirtualHost *:443> hinzufuegen und der Port muss in der Firewall ebenfalls freigegeben sein.
 
Ich hatte auch noch eine Datei mit diesem Inhalt erstellt. Ist die so richtig oder wie sollte sie aussehen?

Code:
<VirtualHost *:443>
    ServerAdmin robaer@tuta.io
    ServerName robertkram.com
    ServerAlias www.robertkram.com
    DocumentRoot /var/www/html/robertkram.com
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    SSLEngine on
</VirtualHost>

<Directory /var/www/html/robertkram.com>
        Options FollowSymLinks  
        AllowOverride All
        Require all granted
</Directory
 
Das ist richtig. Er erstellt sie aber leider nicht. Wenn ich die die nicht ssl .conf umbenenne dann kann ich nicht mal mehr den Apache starten und das Script legt auch keine neue an. Eine SSL .conf außer die default-ssl.conf wird nicht angelegt.
 
Zurück
Oben