- Code: Select all
<VirtualHost 1.2.3.4:443>
DocumentRoot "/opt/lampp/htdocs"
ServerName localhost:443
ServerAdmin you@your.address
ErrorLog logs/error_log
TransferLog logs/access_log
SSLEngine on
SSLCertificateFile /opt/lampp/etc/ssl.crt/server.crt
SSLCertificateKeyFile /opt/lampp/etc/ssl.key/server.key
Das ist die minimale Konfiguration für einen SSL-Virtual Host. Weitere Einstellungen findest Du in der ssl.conf.
1.2.3.4 ist in dem Beispiel die IP-Adresse von Deinem SSL-Virtual Host. Jeder SSL-Virtual Host brauchst seine eigene IP-Adresse! Name-based Virtual Hosts sind mit SSL nicht möglich!
das hier ab ich schone probiert
wenn ich das hier mache:
- Code: Select all
<VirtualHost [meine IP adresse]:443>
DocumentRoot "/opt/lampp/htdocs"
ServerName localhost:443
ServerAdmin you@your.address
ErrorLog logs/error_log
TransferLog logs/access_log
SSLEngine on
SSLCertificateFile /opt/lampp/etc/ssl.crt/server.crt
SSLCertificateKeyFile /opt/lampp/etc/ssl.key/server.key
(server.crt und server.key sind die richtige paths)
(nur dir [meine IP adresse] andere ich
lauft https ! aber http lauft nicht mehr.
ich bekomme dann ein blanco seite.
in den Source code finde ich:
- Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>
was gibs dann noch?
soll ich fur Servername und DocumentRoot nicht etwas anderes
herein fuhren?
in httpd.conf habe die einstellungen gemacht:
DocumentRoot "/home/sites/site41/web"
#DocumentRoot "/opt/lampp/htdocs"
<IfModule mod_ssl.c>
Include etc/ssl.conf
</IfModule>
und, brauche ich nicht dieses hier:
LoadModule modssl_module modules/mod_ssl.so
oder so etwas ahnliches??
Timmy