versuche gerade SSL für einen VirtualHost einzurichten.
Das Problem: Die Seite ist über https nicht erreichbar.
Ich habe ein eigenes Zertifikat erstellt:
Code: Alles auswählen
> openssl genrsa -out /etc/ssl/private/certprivat_01.key 2048
> openssl req -new -x509 -key /etc/ssl/private/certprivat_01.key -days 365 -sha256 -out /etc/ssl/certs/meincert_01.crt
Code: Alles auswählen
<VirtualHost *:80>
ServerAdmin email@example.de
ServerName www.example.de:80
ServerAlias example.de *.example.de
DocumentRoot /var/www/html/example
<Directory /var/www/html/example>
DirectoryIndex index.html
Options None
AllowOverride None
Order allow,deny
allow from all
Deny from env=BlockCountry
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin email@example.de
ServerName www.example.de:443
ServerAlias example.de *.example.de
DocumentRoot /var/www/html/example
SSLEngine on
SSLCertificateFile /etc/ssl/certs/meincert_01.crt
SSLCertificateKeyFile /etc/ssl/private/certprivat_01.key
<Directory /var/www/html/example>
DirectoryIndex index.html
Options None
AllowOverride None
Order allow,deny
allow from all
Deny from env=BlockCountry
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Code: Alles auswählen
> apachectl -v
Server version: Apache/2.2.22 (Debian)
Server built: Dec 23 2014 22:48:29
Ich erhalte, egal mit welchem Browser, einen Seiten-Ladefehler - die Seite ist praktisch tot. Über Port 80 aber, ist die Seite ganz normal erreichbar.
Woran kann das liegen?