Issue
I have a fully working apache2 server with moodle installed. I'm trying to get the frontpage/entire site to work with ssl. When i try to start apache2 with "apachectl start" i get the error:
Action 'start' failed. Theapache error log may have more information
/var/log/apache2/access.log:
... "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.10 (Ubuntu) OpenSSL/1.0.1f (Internal dummy connection)
The rest of the file is just http GET requests.
/etc/apache2/sites-enable/000-default.conf
<VirtualHost *:443>
DocumentRoot /var/www/html/moodle
SSLEngine on
SSLCertificateFile /home/osboxes/CertificadosSSL/test.csr
SSLCertificaKeyFile /home/osboxes/CertificadosSSL/test.key
ErrorLog ....
CustomLog ....
</VirtualHost>
I'm new to apache. If there is any vital information vital missing let me know. Thanks in advance.
Solution
The error message isn't clear about it, but apache2 could not restart because your /etc/apache2/sites-enable/000-default.conf contains a typo and is not able to locate your certificate key file:
Repair it by changing SSLCertificaKeyFile to: SSLCertificateKeyFile
After changing this file, try to restart apache2.
Answered By - Micha Somers