I wonder why rcapache2
(which redirects to systemctl restart apache2.service
) fails with this error, but httpd2 -S
doesn't complain at all:
Jun 28 14:37:50 revue start_apache2[4037]: SSLCertificateFile: file '/etc/apache2/ssl.crt/pluimers.com.crt' does not exist or is empty
I know the certificate should be there (it will in a minute), but I always presumed httpd2 -S
would perform the same checks as systemctl restart apache2.service
would do.
Apparently it doesn't.
SSL is enabled:
# grep APACHE_SERVER_FLAGS /etc/sysconfig/apache2
# 5. To finally enable ssl support, you need to add 'SSL' to APACHE_SERVER_FLAGS
APACHE_SERVER_FLAGS="SSL"
My configuration is based on the apache2-vhost-ssl.template. The template has the below condition. I think the cause is that the condition is satisfied by apache2.service
, but not by httpd2
:
<IfDefine SSL>
<IfDefine !NOSSL>
Is that indeed the cause? If so: why? If not: what is the cause?
How can I work around it using httpd2 -S
?