ich wollte mal SSL ausprobieren. Habe mir ein Cert erstellt und alles wie hier im Forum beschrieben ind die ssl.conf eingetragen.
hat auch soweit funktioniert nur erhalte ich dann keinen Zugriff mehr auf die Seite über http. https funktioniert. Kommentiere ist den eintrag aus der ssl.conf wieder aus geht auch http wieder.
Die httpd.conf
- Code: Select all
<VirtualHost 192.168.0.1>
ServerName domain.tld
ServerAlias *.domain.tld www.domain.tld
ServerAdmin ich@domain.tld
DocumentRoot /opt/lampp/htdocs/domain/html
ScriptAlias /cgi-bin/ /opt/lampp/htdocs/domain/html/cgi-bin/
<Directory opt/lampp/htdocs/domain/html/cgi-bin/>
Options ExecCGI
</Directory>
ErrorLog /opt/lampp/htdocs/domain/log/error.log
CustomLog /opt/lampp/htdocs/domain/log/access_log common
<Directory opt/lampp/htdocs/domain/html>
Options -Indexes FollowSymLinks MultiViews Includes
</Directory>
</VirtualHost>
meine ssl.conf
- Code: Select all
<VirtualHost 192.168.0.1:443>
SSLEngine on
ServerName ssl.domain.tld
ServerAdmin ich@domain.tld
DocumentRoot /opt/lampp/htdocs/domain/html/
SSLCertificateFile /opt/lampp/htdocs/domain/ssl_cert/domain.crt
SSLCertificateKeyFile /opt/lampp/htdocs/domain/ssl_key/domain.key
</VirtualHost>
Ich war der Meinung darüber hier mal was im Forum gesehen zu haben habs aber leider nicht mehr gefunden