I´m having problems setting up a SSL cert. It seems Apache2 does not serve the cert defined in the vhost but the one in default-ssl (which seems to be expired)
default-ssl
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
ServerName 70.127.153.111
...
SSLEngine on
SSLCertificateFile /etc/ssl/certs/webserver.pem
SSLCertificateKeyFile /etc/ssl/private/webserver.key
...
Vhost Setup
<VirtualHost *:443>
ServerName sub.mydomain.com
DocumentRoot /var/www/
SSLEngine on
SSLCertificateFile /etc/ssl/private/mydomain.crt
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-mydomain-snakeoil.key
SSLCertificateChainFile /etc/apache2/mydomain.crt
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>
Happy for any hint what I´m doing wrong.
Thanks!
_default_by*, i got almost the same conf on my apache and SSL works fine – Froggiz Nov 12 '15 at 15:47DocumentRootin default virtual host, try to add one. If the SSL still doen't work after this change, you can try to comment your default virtual host to test if the main SSL works. By the way if you still have errors after, you can check your apache log (and maybe increase log level). And i didn't mention but i hope you did, after each change you need to restart apacheapache2ctl restart– Froggiz Nov 12 '15 at 16:01