After installing an SSL certificate from Comodo following these instructions, I've found that apache will no longer start. This is my config:
<VirtualHost *:80> ServerName latimer.io ServerAlias *.latimer.io ServerAdmin webmaster@localhost DocumentRoot /var/www/latimer.io/html # RewriteEngine On # RewriteCond %{HTTPS} off # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} </VirtualHost> <VirtualHost *:443> ServerName latimer.io ServerAlias *.latimer.io ServerAdmin webmaster@localhost DocumentRoot /var/www/latimer.io/html SSLEngine On SSLCertificateKeyFile /etc/ssl/server.key.secure SSLCertificateFile /etc/ssl/latimer_io.crt SSLCertificateChainFile /etc/ssl/latimer_io.ca-bundle ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> Apache error log gives the following (not very helpful) errors:
[ssl:emerg] [pid 30910] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0) [ssl:emerg] [pid 30910] AH02312: Fatal error initialising mod_ssl, exiting. Yet running apache2ctl -S produces no errors. Any guidance as to how to proceed is appreciated. Other serverfault pages describing the same, generic error have not been successful in resolving the problem.
openssl x509 -noout -text -in /etc/ssl/latimer_io.crtto check whether your certificate is correctly stored in the file whence you told Apache to load it.